This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: java and c++


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.







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]