Thread
:
Why wont this compile?
View Single Post
#
4
(View Single Post)
19th May 2008
ephemera
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:
Code:
// test.cc or test.cpp #include <iostream> int main() {
std
::cout << "Hello World\n"; return 0; }
to compile:
$ g++ test.cc
ephemera
View Public Profile
Find all posts by ephemera