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 Date: Sun, 19 Aug 2001 16:42:08 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Cc: Astrid DOT Burghard AT t-online DOT de Subject: Re: gcc linking problem - badly installed? Message-ID: <20010819164208.B24439@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, Astrid DOT Burghard AT t-online DOT de References: <15WhV9-0UCd3gC AT fwd03 DOT sul DOT t-online DOT com> <009701c124f8$09890ab0$2fdd18ac AT amr DOT corp DOT intel DOT com> <15YOf3-0zJ52uC AT fwd04 DOT sul DOT t-online DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <15YOf3-0zJ52uC@fwd04.sul.t-online.com>; from Astrid.Burghard@t-online.de on Sun, Aug 19, 2001 at 11:14:25AM +0200 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/