delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/19/20:42:26

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cgf AT redhat DOT com>
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
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 <stdio.h>
>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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019