delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/28/06:23:08

Date: Tue, 28 Sep 1999 09:42:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Rodeo Red <rodeored AT netstep DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: missing iostream.h
In-Reply-To: <330AD756F8BB9CEF.F8637F444EA9E48A.1D40BCFAF804AA35@lp.airnews.net>
Message-ID: <Pine.SUN.3.91.990928094142.17309O-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 27 Sep 1999, Rodeo Red wrote:

>    void main ()
>    {
>        cout <<"Hello world!\n";
>    }
> 
> By the way, which directory should I save this file to ? Does it matter
> ?
> 
> When I compile with rhide I get :
> error: iostream.h no such file or directory (ENOENT)

That's because you call the file hello.c instead of hello.cc or
hello.cpp.  The compiler thinks it's a C program and doesn't search
the C++ include directories.

See section 8.4 of the DJGPP FAQ list for more details.

> I did a file search for iostream.h and it doesn't seem to be on my
> computer.
> I looked in C:\djgpp\include and its not there .

It should be in C:\djgpp\lang\cxx.  If you unzipped gpp281b.zip, it
should be there.

- Raw text -


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