This is the mail archive of the gcc-help@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: 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";
}



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