gcc-3.2.2 Irix

Smith, Jacob N. jnsmith@utmb.edu
Wed Jul 23 13:48:00 GMT 2003


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";
}




More information about the Gcc-help mailing list