Mail Archives: djgpp/1997/09/02/23:00:27
Try this: use `gcc -v' to compile and look at its list of search paths. I
would guess that the path containing iostream.h will not be on it. This
would most likely be because your DJGPP environment variable is not set
correctly. Read about it in the README.1ST file. Also make sure your
DJGPP.ENV file isn't corrupt, perhaps replace it with the distributed one.
At 11:14 9/1/1997 -0000, Faust wrote:
>Ive read thru the FAQ, and its not helping me with my problem. Ive tried
>everything its said to but none has worked.
>
>Also, Ive downloaded all zips needed for C++ and I have the iostream.h
>
>The program is a simple "Hello World" that looks like this:
>
>-----------
>#include <iostream.h>
>
>int main()
>{
> cout << "Hello World!\n";
> return 0;
>}
>-----------
>
>Every time I run gcc it says :
>
>-----------
>hello.cpp:1: iostream.h: No Such File or Directory (ENOENT)
>-----------
>
>Ive also tried removing the "#include <iostream.h>" line and it says:
>
>-----------
>hello.cpp: In Function 'int main()':
>hello.cpp:3: 'cout' undeclared (first use this function)
>hello.cpp:3: (Each undeclared identifier is reported only once
>hello.cpp:3: for each function it appears in.)
>-----------
>
>Anyone know what my problem is? Ive spent forever trying to figure it out...
Nate Eldredge
eldredge AT ap DOT net
- Raw text -