gcc test.cpp -o test
/tmp/cceVHycp.o: In function `__static_initialization_and_destruction_0(int, int)':
test.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()'
/tmp/cceVHycp.o: In function `__tcf_0':
test.cpp:(.text+0x6c): undefined reference to `std::ios_base::Init::~Init()'
/tmp/cceVHycp.o: In function `main':
test.cpp:(.text+0x8b): undefined reference to `std::allocator<char>::allocator()'
test.cpp:(.text+0xa5): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
test.cpp:(.text+0xb0): undefined reference to `std::allocator<char>::~allocator()'
test.cpp:(.text+0xbe): undefined reference to `std::cout'
test.cpp:(.text+0xc3): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
test.cpp:(.text+0xd6): undefined reference to `std::allocator<char>::~allocator()'
test.cpp:(.text+0xf4): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
test.cpp:(.text+0x10a): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/tmp/cceVHycp.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld gab 1 als Ende-Status zurück