This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: gcc-3.2.2 Irix
- From: "Smith, Jacob N." <jnsmith at utmb dot edu>
- To: 'Mauricio Barbieri' <ac203804 at inf dot pucrs dot br>, gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Jul 2003 08:09:04 -0500
- Subject: RE: gcc-3.2.2 Irix
Try the following instead:
#include <iostream>
#include <string> // <= modern header
int main ( int argc, char *argv[] ) // <= keep Aunt ANSI happy
{
std::cout << "Hello, World!" << std::endl; // <= namespace, std::
}
Note that all the "standard" headers (string,vector,algorithm,fstream etc.)
require the namespace "std::".
-j.
**************************************************************
I've traing to compile a simple source, but I've just
got the following.
The source:
#include <iostream>
#include <string.h>
void main()
{
cout << "TESTE TESTE TESTE";
}