I've done some searching and can't seem to figure this one out. I have dumbed it down to just a plain old Hello World program:
[codex]
#include <iostream>
int main (int argc, char * const argv[]) {
std::cout << "Hello, World!\n";
return 0;
}
[/codex]
I compile on the command line with:
gcc HelloWorld.cpp
And I get the following error:
[codex]/usr/bin/ld: Undefined symbols:
std::ios_base::Init::Init()
std::ios_base::Init::~Init()
std::cout
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
___gxx_personality_v0
collect2: ld returned 1 exit status
[/codex]
I appear to be missing something, and I have no idea what it is. Any clues? Google is not helping, and nothing in the archives here seem to help.