This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: java and c++
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: calcpage at lycos dot com
- Cc: gcc <gcc at gnu dot org>
- Date: Sun, 24 Nov 2002 16:00:01 +0100
- Subject: Re: java and c++
- References: <GMAMKJJADKFBAAAA@mailcity.com>
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.