Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Astrid DOT Burghard AT t-online DOT de (Astrid Burghard) To: cygwin AT cygwin DOT com References: <15WhV9-0UCd3gC AT fwd03 DOT sul DOT t-online DOT com> <009701c124f8$09890ab0$2fdd18ac AT amr DOT corp DOT intel DOT com> Subject: Re: gcc linking problem - badly installed? X-Mailer: T-Online eMail 2.34 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Date: Sun, 19 Aug 2001 11:14:25 +0200 Message-ID: <15YOf3-0zJ52uC@fwd04.sul.t-online.com> X-Sender: 320099059861-0001 AT t-dialin DOT net 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? Thank you again Enno (c/o Astrid) -- 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/