RE: gcc-3.2.2 Irix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux