View Single Post
  #4   (View Single Post)  
Old 19th May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

looks like you were trying to compile it with 'gcc' instead of 'g++'.

change your program to:

Code:
//  test.cc  or test.cpp
#include <iostream>

int main()
{
    std::cout << "Hello World\n";

    return 0;
}
to compile:

$ g++ test.cc
Reply With Quote