delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/16/10:22:19

Date: Tue, 16 Jan 1996 16:58:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Kevin Gehrke <gehrke AT en DOT ecn DOT purdue DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Problem with ez-gcc

On 15 Jan 1996, Kevin Gehrke wrote:

> I am new to this djgpp thing and have a stupid question.  My cpp programs
> are in their own directory.  The include statements contain iostream.h in 
> them.  When I compile it says it can't find iostream.h.  It is in a directory
> c:\djgpp\cplusinc .  Do I need to put the whole path of the file iostream.h in
> the include statement

No, you don't.  Gcc should be able to find the include directory itself.  
The way it works is by means of the DJGPP.ENV file.  This should be in 
your C:\DJGPP directory, and the DJGPP environment variable should point 
to it, like this:

	set DJGPP=C:/DJGPP/DJGPP.ENV

If you'll look into that file, you'll see a variable called 
CPLUS_INCLUDE_PATH that should point to the cplusinc directory.  Most of 
the problems like yours are caused by the DJGPP variable not being set.

I'd also advise you to download the file faq102.zip (from the same place 
you got DJGPP) and read the FAQ list there.  The question you asked is 
already answered there.

- Raw text -


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