Date: Wed, 11 Jan 1995 23:42:25 -0800 (PST) From: Gordon Hogenson To: Jeearr the Demon of Chaos 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. >