whiterabbit@pixfirewall:~/code/lgm> gcc -ggdb test.cpp -o test
/tmp/cclXOULk.o: In function `__static_initialization_and_destruction_0':
/usr/include/c++/4.1.2/iostream:76: undefined reference to `std::ios_base::Init::Init()'
/tmp/cclXOULk.o: In function `__tcf_0':
/usr/include/c++/4.1.2/iostream:76: undefined reference to `std::ios_base::Init::~Init()'
/tmp/cclXOULk.o: In function `main':
/home/whiterabbit/code/lgm/test.cpp:8: undefined reference to `std::cout'
/home/whiterabbit/code/lgm/test.cpp:8: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/cclXOULk.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status