Mail Archives: djgpp/1999/09/28/06:23:08
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 -