I got it working.  Same file as below, but invoking this command:

g++ -o hello hello.c

I tried gcc also and got the same result as you did.  If you do a
'locate iostream.h' you'll see that it is in the g++ include
directory.  So maybe they aren't merged.  But I'm no expert and could
be way off.

-Rob.

> On 20010101.2153, Haan Eric said ...
>
> I have a question about c++ programming on Linux that
> I am hoping someone can help me out with.  I am
> currently trying to compile and run the following c++
> program on my Mandrake Linux OS:
> 
> 
> #include <iostream.h>
> main()
> {
>    cout << "Hello!\n";
>    return (0);
> }
> 
> 
> >From what I can tell, the g++ command has been removed
> and merged with gcc, which I guess does both c and
> c++.  The name of the above program is hello.cc  I
> have tried to compile this by typing in:
>  
> gcc hello.cc
> 
> but all I get is:
>  
> hello.cc:1: iostream.h: No such file or directory. 
> 
> I would appreciate any help as I am new with both c++
> and linux.  Thanks.
> 
> -Eric Haan, the new guy from UofO.
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/

Reply via email to