java and c++

Paolo Carlini pcarlini@unitus.it
Sun Nov 24 16:30:00 GMT 2002


A. Jorge Garcia wrote:

>Also, is there a bug in g++ 3.2?  I just used it to compile a simple hello world program and #include<iostream> didn't work!  I couldn't even get the iostream objects 'cout' or 'endl' to work.  Is there a way to fix this??
>
The way to 'fix' this is remembering that cout and endl belong
to namespace std:

////

#include <iostream>

int main()
{
  std::cout << "Hello world!" << std::endl;
}

////

Ciao, Paolo.

P.S. This kind of questions are more appropriately posted to gcc-help.








More information about the Gcc mailing list