Author Topic: 48 errors compiling simple 'hello world'  (Read 4932 times)

Offline techwar

  • Single posting newcomer
  • *
  • Posts: 8
48 errors compiling simple 'hello world'
« on: May 28, 2009, 07:24:10 pm »
I just installed codeblocks and just trying to compile a simle program like hello world, I get this:


-------------- Build: Debug in test ---------------

Compiling: main.cpp
Linking console executable: bin\Debug\test.exe
/mingw/lib/libstdc++.a(ios_init.o):ios_init.cc:(.text+0xa63): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(ios_init.o):ios_init.cc:(.text+0xd56): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(ios_init.o):ios_init.cc:(.text+0x16a3): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSt13basic_ostreamIwSt11char_traitsIwEEC1EPSt15basic_streambufIwS1_E[std::basic_ostream<wchar_t, std::char_traits<wchar_t> >::basic_ostream(std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >*)]+0xbf): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5seekpESt4fposIiE[std::basic_ostream<char, std::char_traits<char> >::seekp(std::fpos<int>)]+0x14a): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(ostream-inst.o):ostream-inst.cc:(.text$_ZNSo5flushEv[std::basic_ostream<char, std::char_traits<char> >::flush()]+0xb1): more undefined references to `_Unwind_Resume' follow
/mingw/lib/libstdc++.a(eh_personality.o):eh_personality.cc:(.text+0x73f): undefined reference to `_Unwind_GetIPInfo'
/mingw/lib/libstdc++.a(eh_personality.o):eh_personality.cc:(.text+0x12ab): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(streambuf-inst.o):streambuf-inst.cc:(.text$_ZNSt15basic_streambufIwSt11char_traitsIwEE8pubimbueERKSt6locale[std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >::pubimbue(std::locale const&)]+0x6c): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(streambuf-inst.o):streambuf-inst.cc:(.text$_ZNSt15basic_streambufIcSt11char_traitsIcEE8pubimbueERKSt6locale[std::basic_streambuf<char, std::char_traits<char> >::pubimbue(std::locale const&)]+0x6c): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(misc-inst.o):misc-inst.cc:(.text$_ZStrsIwSt11char_traitsIwESaIwEERSt13basic_istreamIT_T0_ES7_RSbIS4_S5_T1_E[std::basic_istream<wchar_t, std::char_traits<wchar_t> >& std::operator>><wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >(std::basic_istream<wchar_t, std::char_traits<wchar_t> >&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)]+0x2c7): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(istream-inst.o):istream-inst.cc:(.text$_ZNSt13basic_istreamIwSt11char_traitsIwEEC1EPSt15basic_streambufIwS1_E[std::basic_istream<wchar_t, std::char_traits<wchar_t> >::basic_istream(std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >*)]+0xc9): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(istream-inst.o):istream-inst.cc:(.text$_ZNSiC1EPSt15basic_streambufIcSt11char_traitsIcEE[std::basic_istream<char, std::char_traits<char> >::basic_istream(std::basic_streambuf<char, std::char_traits<char> >*)]+0xc5): more undefined references to `_Unwind_Resume' follow
/mingw/lib/libstdc++.a(eh_throw.o):eh_throw.cc:(.text+0x37): undefined reference to `_Unwind_Resume_or_Rethrow'
/mingw/lib/libstdc++.a(eh_throw.o):eh_throw.cc:(.text+0x82): undefined reference to `__cmshared_unexpected'
/mingw/lib/libstdc++.a(eh_throw.o):eh_throw.cc:(.text+0x8c): undefined reference to `__cmshared_terminate'
/mingw/lib/libstdc++.a(eh_throw.o):eh_throw.cc:(.text+0x99): undefined reference to `_Unwind_RaiseException'
/mingw/lib/libstdc++.a(new_op.o):new_op.cc:(.text+0x5f): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x2): undefined reference to `__cmshared_terminate'
/mingw/lib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x12): undefined reference to `__cmshared_unexpected'
/mingw/lib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x44): undefined reference to `__cmshared_terminate'
/mingw/lib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x68): undefined reference to `__cmshared_terminate'
/mingw/lib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x84): undefined reference to `__cmshared_unexpected'
/mingw/lib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x8b): undefined reference to `__cmshared_terminate'
/mingw/lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x6): undefined reference to `__cmsharedptr'
/mingw/lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x70): undefined reference to `__cmsharedptr'
/mingw/lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0xc5): undefined reference to `__cmsharedptr'
/mingw/lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x111): undefined reference to `__cmsharedptr'
/mingw/lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x12d): undefined reference to `__cmsharedptr'
/mingw/lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x152): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x16e): undefined reference to `__cmsharedptr'
/mingw/lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x1d7): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x109): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x258): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(istream.o):istream.cc:(.text+0x25a): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(istream.o):istream.cc:(.text+0x596): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(istream.o):istream.cc:(.text+0x7ef): more undefined references to `_Unwind_Resume' follow
/mingw/lib/libstdc++.a(guard.o):guard.cc:(.text+0xa8): undefined reference to `__gthr_win32_recursive_mutex_init_function'
/mingw/lib/libstdc++.a(guard.o):guard.cc:(.text+0xbe): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(guard.o):guard.cc:(.text+0x116): undefined reference to `__gthr_win32_recursive_mutex_lock'
/mingw/lib/libstdc++.a(guard.o):guard.cc:(.text+0x1ed): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(guard.o):guard.cc:(.text+0x229): undefined reference to `__gthr_win32_recursive_mutex_unlock'
/mingw/lib/libstdc++.a(guard.o):guard.cc:(.text+0x281): undefined reference to `__gthr_win32_recursive_mutex_unlock'
/mingw/lib/libstdc++.a(guard.o):guard.cc:(.text$_ZN9__gnu_cxx17__recursive_mutex6unlockEv[__gnu_cxx::__recursive_mutex::unlock()]+0x14): undefined reference to `__gthr_win32_recursive_mutex_unlock'
/mingw/lib/libstdc++.a(numeric_members.o):numeric_members.cc:(.text+0x46): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(numeric_members.o):numeric_members.cc:(.text+0x96): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(numeric_members.o):numeric_members.cc:(.text+0xe6): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(numeric_members.o):numeric_members.cc:(.text+0x136): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(numeric_members.o):numeric_members.cc:(.text+0x18e): undefined reference to `_Unwind_Resume'
/mingw/lib/libstdc++.a(numeric_members.o):numeric_members.cc:(.text+0x1ee): more undefined references to `_Unwind_Resume' follow
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 3 seconds)
46 errors, 0 warnings
 
Does anyone have any ideas?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: 48 errors compiling simple 'hello world'
« Reply #1 on: May 28, 2009, 07:53:27 pm »
Most likely an incorrect setup of your compiler toolchain (probably ld instead of g++ as linker-executable) or a broken MinGW installation.

In both cases not related to C::B and therefore violating our forum rules.

Topic locked !