Date: Wed, 11 Jan 1995 22:13:58 -0500 (CDT) From: Aaron Ucko Subject: Re: linking problem with ld? To: jeearr AT dns1 DOT cpcc DOT cc DOT nc DOT us Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Organization: Rockhurst College; Kansas City, MO >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 ^ crt0.o should go here; it would provide the missing stuff. You didn't call ld manually, did you? Unless you're doing something odd, it's generally best to let gcc call ld itself. (gcc intro.o -o truth). --- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp! -=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=- Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ UL++(-)(S+)>++++ P++ L+(++) 3(-) E-(----) !N>++ K- W-(---) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R G tv--(-) b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?