From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Faylor To: cygwin@cygwin.com Cc: Astrid.Burghard@t-online.de Subject: Re: gcc linking problem - badly installed? Date: Sun, 19 Aug 2001 13:42:00 -0000 Message-id: <20010819164208.B24439@redhat.com> References: <15WhV9-0UCd3gC@fwd03.sul.t-online.com> <009701c124f8$09890ab0$2fdd18ac@amr.corp.intel.com> <15YOf3-0zJ52uC@fwd04.sul.t-online.com> X-SW-Source: 2001-08/msg00836.html On Sun, Aug 19, 2001 at 11:14:25AM +0200, Astrid Burghard wrote: >Tim Prince wrote: >> The gcc and g77 commands invoke the correct link and library >> specifications, if properly installed. There is no way that the >> ld command by itself will know what to do. crt0.o appears in /lib >> in my installation. > >Thanks for your answer. > >I found crt0.o in /Progs/Cygwin/usr/lib and I guess, >my gcc doesn't find it. I found in gcc.info-21, node >drivers, that a macro named STANDARD_STARTFILE_PREFIX >should tell gcc, where to look for crt0.o. But compi- >lation of > >#define STANDARD_PREFIX "/Progs/Cygwin/usr/lib" >#include >main() { printf( "%s\n", "Hello world!" ); } > >gave the known error message: > >/PROGS/CYGWIN/USR/BIN/ld: cannot open crt0.o: No such file or directory >collect2: ld returned 1 exit status > >How to tell gcc where to search for the startfiles? You probably unset whatever environment variables you have set which are confusing gcc. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/