gcc acc.cpp /tmp/ccJGmywo.o: In function `__static_initialization_and_destruction_0(int, int)': acc.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()' /tmp/ccJGmywo.o: In function `__tcf_0': acc.cpp:(.text+0x6c): undefined reference to `std::ios_base::Init::~Init()' /tmp/ccJGmywo.o: In function `main': acc.cpp:(.text+0x8e): undefined reference to `std::cout' acc.cpp:(.text+0x93): undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccJGmywo.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status