delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/06/12:10:44

Date: Thu, 6 Jan 2000 11:46:47 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Andrea Ryan <aryan AT global2000 DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Include Paths
In-Reply-To: <3873FB65.1B497B54@global2000.net>
Message-ID: <Pine.SUN.3.91.1000106114624.20220A@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 6 Jan 2000, Andrea Ryan wrote:

> The output I got was:
> 
> C:\SCITECH\EXAMPLES\MGL>set
> TMP=C:\WINDOWS\TEMP
> TEMP=C:\WINDOWS\TEMP
> PROMPT=$p$g
> winbootdir=C:\WINDOWS
> EUDIR=C:\EUPHORIA
> C_INCLUDE_PATH=C:\Scitech\Include
> CPLUS_INCLUDE_PATH=C:\Scitech\Include
[snip]
> DJGPP=C:\DJGPP\DJGPP.ENV

I don't understand this: C_INCLUDE_PATH is set, DJGPP is also set, and
yet the MGL include directories don't appear on the search path
reported by the compiler:

> GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
> #include "..." search starts here:
> #include <...> search starts here:
>  c:/djgpp/lib/gcc-lib/djgpp/2.952/include      <--------------No MGL!
>  c:/djgpp/include

How can this be??  Did you edit DJGPP.ENV?  It should have a fragment
like this:

[cpp]
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include;%DJDIR%/contrib/grx20/include
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx20/include

Do you have it, or is it somehow changed?  It is especially important
that the first part after the equals sign `=', the one which mentions
C_INCLUDE_PATH, is present, since that's what makes the value of
C_INCLUDE_PATH, as you set it in the environment, be prepended to the
defeault directories.  Please make sure that this line is intact.

Does anyone know how could the compiler ignore C_INCLUDE_PATH?

> DJ_PATH=C:\DJGPP

What do you need this variable for?

- Raw text -


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