alienroo@localhost ~ $ gcc test.cpp -o testcpp /tmp/ccHiCRlp.o: In function `__static_initialization_and_destruction_0(int, int)': test.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()' /tmp/ccHiCRlp.o: In function `__tcf_0': test.cpp:(.text+0x6c): undefined reference to `std::ios_base::Init::~Init()' /tmp/ccHiCRlp.o: In function `main': test.cpp:(.text+0x8e): undefined reference to `std::cout' test.cpp:(.text+0x93): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccHiCRlp.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status