delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/12/01:30:49

Date: Mon, 12 Jul 1999 08:28:34 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Leonardo A. Saravia" <lsaravia AT mail DOT retina DOT ar>
cc: djgpp AT delorie DOT com
Subject: RE: crt0.o
In-Reply-To: <000101becc02$f8a33900$2aca0ac8@lyl>
Message-ID: <Pine.SUN.3.91.990712082758.13931F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 11 Jul 1999, Leonardo A. Saravia wrote:

> GNU Fortran Front End version 0.5.23
>  as -o c:/djgpp/tmp\ccbqfc5k c:/djgpp/tmp\ccaqfc5k
>  ld -o count.exe crt0.o -Lc:/djgpp/lib/gcc-lib/djgpp/2.81
> c:/djgpp/tmp\ccbqfc5k
> -lg2c -lm -lgcc -lc -lgcc -Tdjgpp.djl
> C:\DJGPP\BIN/ld.exe: cannot open crt0.o: No such file or directory (ENOENT)

I'd guess that the environment variable LIBRARY_PATH is not set for
g77.  One solution is to edit your djgpp.env file and add there a
[g77] section that is identical to [gcc] section.

But before you edit djgpp.env, I suggest to read again the
DJGPP-specific installation instructions for g77 (they should be on
some README file in the distribution).  I'm sure they explain how to
set up g77 so that these problems don't happen.

> I don't know why but the file crt0.o is in the /djgpp/lib and not in the
> /djgpp/lib/gcc-lib/djgpp/2.81

This is normal, crt0.o is part of the DJGPP library and should be in
c:/djgpp/lib, as the rest of the libraries.  g77 should instruct the
linker to look for libraries and crt0.o in c:/djgpp/lib.  Your problem
is that it doesn't, due to some installation mishap.

- Raw text -


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