From: "Leonardo A. Saravia" To: Subject: RE: crt0.o Date: Sun, 11 Jul 1999 22:07:54 -0300 Message-ID: <000101becc02$f8a33900$2aca0ac8@lyl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > -----Original Message----- > From: Eli Zaretskii [mailto:eliz AT is DOT elta DOT co DOT il] > Sent: 11 July 1999 05:27 > To: Leonardo A. Saravia > Cc: djgpp AT delorie DOT com > Subject: Re: crt0.o > > > > On Sun, 11 Jul 1999, Leonardo A. Saravia wrote: > > > I have installed DJGPP and can compile C/C++ programs without problems. > > Recently I installed g77 and when I try the compile/link command: g77 -o > > count.exe count.f > > always receive the followin error: > > > > C:\DJGPP\BIN/ld.exe: cannot open crt0.o: No such file or > directory (ENOENT) > > When you installed g77, you screwed something in the DJGPP installation, > probably because g77 comes with a different version of GCC as its > back-end. > > Add -v to the compilation command line, redirect g77's stderr to a file > and examine what the compiler prints during compilation. You should be > able to see where does it look for crt0.o, which should be a clue as to > where the problem is. If you cannot figure this out, post the redirected > print-out here, and somebody will help you. > D:\Fortran\sasp>g77 -v -o count.exe count.f g77 version 0.5.23 Driving: c:/djgpp/bin/g77.exe -v -o count.exe count.f -lg2c -lm Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.81/specs gcc version 2.8.1 c:/djgpp/lib/gcc-lib/djgpp/2.81/f771.exe count.f -fset-g77-defaults -quiet -dum pbase count.f -version -fversion -o c:/djgpp/tmp\ccaqfc5k GNU F77 version 2.8.1 (djgpp) compiled by GNU C version 2.8.1. 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) It seems to be that g77 compiler is from the same GCC back-end version. 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 I copied the crt0.o file to the /djgpp/lib/gcc-lib/djgpp/2.81 directory but now it doesn't find other libraries: D:\Fortran\sasp>g77 -v -o count.exe count.f g77 version 0.5.23 Driving: c:/djgpp/bin/g77.exe -v -o count.exe count.f -lg2c -lm Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.81/specs gcc version 2.8.1 c:/djgpp/lib/gcc-lib/djgpp/2.81/f771.exe count.f -fset-g77-defaults -quiet -dum pbase count.f -version -fversion -o c:/djgpp/tmp\ccaikgbl GNU F77 version 2.8.1 (djgpp) compiled by GNU C version 2.8.1. GNU Fortran Front End version 0.5.23 as -o c:/djgpp/tmp\ccbikgbl c:/djgpp/tmp\ccaikgbl ld -o count.exe c:/djgpp/lib/gcc-lib/djgpp/2.81/crt0.o -Lc:/djgpp/lib/gcc-lib/d jgpp/2.81 c:/djgpp/tmp\ccbikgbl -lg2c -lm -lgcc -lc -lgcc -Tdjgpp.djl C:\DJGPP\BIN/ld.exe: cannot open -lm: No such file or directory (ENOENT)