sebastian@sebastian-pc:~/Desktop/gay$ gcc mike-gay.cpp mike-gay.cpp:29:2: warning: no newline at end of file /tmp/cczUyrw3.o: In function `__static_initialization_and_destruction_0(int, int)': mike-gay.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()' /tmp/cczUyrw3.o: In function `__tcf_0': mike-gay.cpp:(.text+0x6c): undefined reference to `std::ios_base::Init::~Init()' /tmp/cczUyrw3.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/cczUyrw3.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status