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

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

change your program to:

//  or test.cpp
#include <iostream>

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

    return 0;
to compile:

$ g++
Reply With Quote