/tmp/ccUvBN7S.o: In function `main': hey_world.cpp:(.text+0x14): undefined reference to `std::cout' hey_world.cpp:(.text+0x19): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' hey_world.cpp:(.text+0x21): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream >&)' hey_world.cpp:(.text+0x29): undefined reference to `std::basic_ostream >::operator<<(std::basic_ostream >& (*)(std::basic_ostream >&))' /tmp/ccUvBN7S.o: In function `__static_initialization_and_destruction_0(int, int)': hey_world.cpp:(.text+0x51): undefined reference to `std::ios_base::Init::Init()' hey_world.cpp:(.text+0x56): undefined reference to `std::ios_base::Init::~Init()' collect2: ld returned 1 exit status