delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/31/07:48:08

Date: Wed, 31 Dec 1997 14:46:13 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Rick <authentic AT tip DOT nl>
cc: djgpp AT delorie DOT com
Subject: Re: Gcc can't find crt0.o
In-Reply-To: <68d8vu$hev$1@cadmium.aware.nl>
Message-ID: <Pine.SUN.3.91.971231143839.4144A-100000@is>
MIME-Version: 1.0

On Tue, 30 Dec 1997, Rick wrote:

> PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;C:\MASM\BIN;C:\MASM\HELP;C:\DJGPP\BIN

It is best to put C:\DJGPP\BIN before any other C compiler's bin 
subdirectory.  If any of the directories that precede DJGPP have cpp.exe, 
you are in trouble.  I would suggest putting DJGPP\BIN before everything 
else, unless you have grave reasons not to do so.  (This probably has 
nothing to do with your main problem, though.)

> DJGPP=C:\DJGPP\DJGPP.ENV;
                          ^
That semi-colon might well be the source of your grief.  Remove it and 
try again.  (DJGPP variable cannot include multiple file names, and 
therefore cannot have semi-colons.)

If that doesn't help, add -v to the gcc command line, run gcc with stderr 
redirected to a file (use `redir' utility if you need) and post here 
everything that is printed into that file.

> BTW things compile fine when I have library_path=c:\djgpp\lib and
> when I call gxx with the proper include paths!

Of course, it will!  Your LIBRARY_PATH isn't set correctly by DJGPP.ENV 
because it is derived from the DJGPP environment variable, and I suspect 
that the semi-colon screws it up.

- Raw text -


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