[plug] g++
Gavin Melhuish
gav at gav.com.au
Mon Apr 21 22:47:17 WST 2003
Craig,
Do you have an earlier version of g++ on your system as well? If so, the
include directory may be pointed to the wrong location for the compiler.
I checked the iostream (not .h) in my /usr/include/g++-3 directory and
it includes iostream.h anyway.
Gavin
On Mon, 2003-04-21 at 22:04, Craig Dyke wrote:
> I have been playing withh some C++ code lately and was trying to use
> the new headers included with gcc 3.2.2
>
> Now if I include<iostream.h> my program compiles but I get the warning that
> I am using a deprecated header and should include<iostream> instead.
>
> My problem is that when I do that I get an error saying that things like
> cout are not defined?
> Can someone point me in right direction?
>
> Here is ever simple hello world that I ahve which does not work:
>
> #include<iostream>
>
> int main()
> {
> cout<<"Hello World!!\n\n";
>
> return(0);
> }
>
> Suggestions are appreciated :)
>
> Craig
>
More information about the plug
mailing list