www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/12/02:57:33

Date: Wed, 11 Jan 1995 23:42:25 -0800 (PST)
From: Gordon Hogenson <ghogenso AT u DOT washington DOT edu>
To: Jeearr the Demon of Chaos <jeearr AT dns1 DOT cpcc DOT cc DOT nc DOT us>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: linking problem with ld?

On Wed, 11 Jan 1995, Jeearr the Demon of Chaos wrote:

> When trying to compile a small program (using a Makefile cause it should grow
> considerably soon) i got the following error
> 
> gcc -o intro.o -c -g -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wredundant-decls  intro.c
> 
> ld intro.o  -o truth -Ld:/djgpp/lib -lc -lgcc
> 
[horrible error messages deleted]

try just calling "gcc intro.o ......".  This calls the compiler driver,
gcc.exe, which in turns calls ld with some hidden arguments, including
crt0.o, which contains startup routines all programs needs.

Try gcc -v sometime to see the actual "ld" command line used.

Gordon.
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019