delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/25/23:55:26

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with path to djgpp
Date: Thu, 24 Oct 1996 22:18:12 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 33
Message-ID: <32704D94.772C@cs.com>
References: <54p32f$lpt AT laslo DOT netnet DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp211.cs.com
Mime-Version: 1.0
To: Mike Heffner <aheffner AT lakefield DOT net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Mike Heffner wrote:
> 
> gcc, gxx, etc. aren't able to find their library files unless i run setdjgpp
> everytime before i compile. Is their a path wrong somewhere in a file?

You _must_ set the DJGPP environment variable in order for DJGPP
programs to find their files.  The recommended way to do this is to set
in your AUTOEXEC.BAT like so:

SET DJGPP=C:/DJGPP/DJGPP.ENV

Of course, replace this with the actual location of DJGPP.ENV.  Case and
direction of the slashes don't matter, but SPACING DOES!

The 'setdjgpp' batch file effectively does this for you, but if you put
it in your AUTOEXEC, be sure to use 'call' with it, i.e.:  call setdjgpp
c:\djgpp c:/djgpp

If you follow these instructions, you shouldn't need to run the batch
file every time before you compile.  If this still doesn't work, please
post a description of your system including:  autoexec.bat and
config.sys files, the output of 'set' when run from dos, the contents of
'djgpp.env', the output of 'go32-v2' when run without arguments, and the
output of gcc when invoked with the -v option (i.e., redir -o gcc.out
-eo gcc -v ...).  See the DJGPP FAQ (v2/faq202b.zip) sections 6 and 8
for more information.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I |        fighteer AT cs DOT com          |
| Proud owner of what might one   |   http://www.cs.com/fighteer    |
| day be a spectacular MUD...     | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------

- Raw text -


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