Mail Archives: djgpp/1999/07/12/01:30:49
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 -