/tmp/ccBOyjH7.o: In function `__static_initialization_and_destruction_0(int, int)': GuessNumber.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()' /tmp/ccBOyjH7.o: In function `__tcf_0': GuessNumber.cpp:(.text+0x6c): undefined reference to `std::ios_base::Init::~Init()' /tmp/ccBOyjH7.o: In function `isCorrect(int, int)': GuessNumber.cpp:(.text+0x9c): undefined reference to `std::cout' GuessNumber.cpp:(.text+0xa1): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' GuessNumber.cpp:(.text+0xb2): undefined reference to `std::cout' GuessNumber.cpp:(.text+0xb7): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccBOyjH7.o: In function `guessGame()': GuessNumber.cpp:(.text+0x113): undefined reference to `std::cout' GuessNumber.cpp:(.text+0x118): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' GuessNumber.cpp:(.text+0x128): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' GuessNumber.cpp:(.text+0x138): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' GuessNumber.cpp:(.text+0x140): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream >&)' GuessNumber.cpp:(.text+0x148): undefined reference to `std::basic_ostream >::operator<<(std::basic_ostream >& (*)(std::basic_ostream >&))' GuessNumber.cpp:(.text+0x158): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' GuessNumber.cpp:(.text+0x166): undefined reference to `std::cin' GuessNumber.cpp:(.text+0x16b): undefined reference to `std::basic_istream >::operator>>(int&)' GuessNumber.cpp:(.text+0x17b): undefined reference to `std::cin' GuessNumber.cpp:(.text+0x180): undefined reference to `std::basic_istream >::operator>>(int&)' GuessNumber.cpp:(.text+0x1a8): undefined reference to `std::cout' GuessNumber.cpp:(.text+0x1ad): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' GuessNumber.cpp:(.text+0x1bd): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' GuessNumber.cpp:(.text+0x1cb): undefined reference to `std::cin' GuessNumber.cpp:(.text+0x1d0): undefined reference to `std::basic_istream >& std::operator>> >(std::basic_istream >&, char&)' GuessNumber.cpp:(.text+0x1d8): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream >&)' GuessNumber.cpp:(.text+0x1df): undefined reference to `std::cout' GuessNumber.cpp:(.text+0x1e4): undefined reference to `std::basic_ostream >::operator<<(std::basic_ostream >& (*)(std::basic_ostream >&))' /tmp/ccBOyjH7.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status