sebastian@sebastian-pc:~/Desktop/gay$ gcc mike-gay.cpp In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward/iostream.h:31, from mike-gay.cpp:1: /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. mike-gay.cpp:29:2: warning: no newline at end of file /tmp/ccVxsTgE.o: In function `__static_initialization_and_destruction_0(int, int)': mike-gay.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()' /tmp/ccVxsTgE.o: In function `__tcf_0': mike-gay.cpp:(.text+0x6c): undefined reference to `std::ios_base::Init::~Init()' /tmp/ccVxsTgE.o: In function `main': mike-gay.cpp:(.text+0x8e): undefined reference to `std::cout' mike-gay.cpp:(.text+0x93): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' mike-gay.cpp:(.text+0x9b): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream >&)' mike-gay.cpp:(.text+0xa3): undefined reference to `std::basic_ostream >::operator<<(std::basic_ostream >& (*)(std::basic_ostream >&))' mike-gay.cpp:(.text+0xb2): undefined reference to `std::cout' mike-gay.cpp:(.text+0xb7): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' mike-gay.cpp:(.text+0xbf): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream >&)' mike-gay.cpp:(.text+0xc7): undefined reference to `std::basic_ostream >::operator<<(std::basic_ostream >& (*)(std::basic_ostream >&))' mike-gay.cpp:(.text+0xd5): undefined reference to `std::cin' mike-gay.cpp:(.text+0xda): undefined reference to `std::basic_istream >::operator>>(int&)' mike-gay.cpp:(.text+0xeb): undefined reference to `std::cout' mike-gay.cpp:(.text+0xf0): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' mike-gay.cpp:(.text+0xf8): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream >&)' mike-gay.cpp:(.text+0x100): undefined reference to `std::basic_ostream >::operator<<(std::basic_ostream >& (*)(std::basic_ostream >&))' mike-gay.cpp:(.text+0x10e): undefined reference to `std::cin' mike-gay.cpp:(.text+0x113): undefined reference to `std::basic_istream >::operator>>(int&)' mike-gay.cpp:(.text+0x139): undefined reference to `std::cout' mike-gay.cpp:(.text+0x13e): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' mike-gay.cpp:(.text+0x146): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream >&)' mike-gay.cpp:(.text+0x14e): undefined reference to `std::basic_ostream >::operator<<(std::basic_ostream >& (*)(std::basic_ostream >&))' mike-gay.cpp:(.text+0x167): undefined reference to `std::cout' mike-gay.cpp:(.text+0x16c): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' mike-gay.cpp:(.text+0x174): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream >&)' mike-gay.cpp:(.text+0x17c): undefined reference to `std::basic_ostream >::operator<<(std::basic_ostream >& (*)(std::basic_ostream >&))' /tmp/ccVxsTgE.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status