Error '__Unwind_Resume' when trying to link codeblocks to boost::thread

Hi, I'm a new user of Boost Libraries, and I'd use multithreading linking the boost::thread class into my projetct. I'm using Code::Blocks, and I've built the Boost in Windows, and then I followed a wiki guide to link the libraries of the Boost.Thread with my Project in CodeBlocks. However I found this reference errors: C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x7d)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x66f)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x771)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0xdbe)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0xe53)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.eh_frame+0x12)||undefined reference to `___gxx_personality_v0'| ||=== Build finished: 6 errors, 0 warnings ===| What I have to do? I tried a lot of tutorials and guides in Google, but no one works...

Hello Bruno, I have used boost libraries and they work for me on Windows. To better understand your question, You may want to tell which environment you r are using, i.e. VC9, Windows XP, ..., and including a copy of the code that is failing may help also. Cheers, Simon From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Bruno Ferraz do Amaral Sent: Wednesday, January 12, 2011 9:11 PM To: boost-users@lists.boost.org Subject: [Boost-users] Error '__Unwind_Resume' when trying to link codeblocks to boost::thread Hi, I'm a new user of Boost Libraries, and I'd use multithreading linking the boost::thread class into my projetct. I'm using Code::Blocks, and I've built the Boost in Windows, and then I followed a wiki guide to link the libraries of the Boost.Thread with my Project in CodeBlocks. However I found this reference errors: C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x7d)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x66f)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x771)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0xdbe)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0xe53)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.eh_frame+0x12)||undefined reference to `___gxx_personality_v0'| ||=== Build finished: 6 errors, 0 warnings ===| What I have to do? I tried a lot of tutorials and guides in Google, but no one works...

Hello Simon,
thanks for the answer and suggestion.
My IDE is CodeBlocks, and I'm running it over Windows Vista 32.
My code is a simple example of the thread lib use:
Code:
#include
Hello Bruno,
I have used boost libraries and they work for me on Windows. To better understand your question,
You may want to tell which environment you r are using, i.e. VC9, Windows XP, …, and including a copy of the code that is failing may help also.
Cheers,
Simon
*From:* boost-users-bounces@lists.boost.org [mailto: boost-users-bounces@lists.boost.org] *On Behalf Of *Bruno Ferraz do Amaral *Sent:* Wednesday, January 12, 2011 9:11 PM *To:* boost-users@lists.boost.org *Subject:* [Boost-users] Error '__Unwind_Resume' when trying to link codeblocks to boost::thread
Hi,
I'm a new user of Boost Libraries, and I'd use multithreading linking the boost::thread class into my projetct.
I'm using Code::Blocks, and I've built the Boost in Windows, and then I followed a wiki guide to link the libraries of the Boost.Thread with my Project in CodeBlocks.
However I found this reference errors:
C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x7d)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x66f)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x771)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0xdbe)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0xe53)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.eh_frame+0x12)||undefined reference to `___gxx_personality_v0'| ||=== Build finished: 6 errors, 0 warnings ===|
What I have to do? I tried a lot of tutorials and guides in Google, but no one works...
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- ================================ Bruno Ferraz do Amaral Ciências da Computação - ICMC Universidade de São Paulo - USP São Carlos =================================

Bruno, The symbols it's looking for are should be in your implementation's C++ runtime library. Typically the kind of error you cite is caused by using gcc instead of g++ to do the linking step, though I'm a bit surprised not to see similar errors reported about iostream support. The only other thought I have is that maybe codeblocks is actually using a different compiler than the one you used to build Boost.Threads. At Thu, 13 Jan 2011 23:18:10 -0200, Bruno Ferraz do Amaral wrote:
Hello Simon,
thanks for the answer and suggestion.
My IDE is CodeBlocks, and I'm running it over Windows Vista 32.
My code is a simple example of the thread lib use:
Code:
#include
#include <iostream> using namespace std;
void hello_world() { cout << "Hello world, I'm a thread!" << endl; }
int main(int argc, char* argv[]) { // inicialize a new thread boost::thread my_thread( &hello_world ); // wait for the thread end my_thread.join();
return 0; }
It's very simple, and when I try to compile it, I got these errors:
C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x7d)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x66f)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x771)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0xdbe)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0xe53)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.eh_frame+0x12)||undefined reference to `___gxx_personality_v0'| ||=== Build finished: 6 errors, 0 warnings ===|
CodeBlocks uses MinGW as compiler, and due this is a C++ code, the g++ is been used (I guess).
note: I've built the boost using MinGW, not msvc.
2011/1/13 Simon Mpasi
Hello Bruno,
I have used boost libraries and they work for me on Windows. To better understand your question,
You may want to tell which environment you r are using, i.e. VC9, Windows XP, …, and including a copy of the code that is failing may help also.
Cheers,
Simon
*From:* boost-users-bounces@lists.boost.org [mailto: boost-users-bounces@lists.boost.org] *On Behalf Of *Bruno Ferraz do Amaral *Sent:* Wednesday, January 12, 2011 9:11 PM *To:* boost-users@lists.boost.org *Subject:* [Boost-users] Error '__Unwind_Resume' when trying to link codeblocks to boost::thread
Hi,
I'm a new user of Boost Libraries, and I'd use multithreading linking the boost::thread class into my projetct.
I'm using Code::Blocks, and I've built the Boost in Windows, and then I followed a wiki guide to link the libraries of the Boost.Thread with my Project in CodeBlocks.
However I found this reference errors:
C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x7d)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x66f)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0x771)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0xdbe)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.text+0xe53)||undefined reference to `__Unwind_Resume'| C:\boost_1_45_0\stage\lib\libboost_thread-mgw45-mt-1_45.a(thread.o):thread.cpp:(.eh_frame+0x12)||undefined reference to `___gxx_personality_v0'| ||=== Build finished: 6 errors, 0 warnings ===|
What I have to do? I tried a lot of tutorials and guides in Google, but no one works...
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- ================================ Bruno Ferraz do Amaral Ciências da Computação - ICMC Universidade de São Paulo - USP São Carlos =================================
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Dave Abrahams BoostPro Computing http://www.boostpro.com

Date: Thu, 13 Jan 2011 21:07:51 -0500 From: dave@boostpro.com To: boost-users@lists.boost.org Subject: Re: [Boost-users] Error '__Unwind_Resume' when trying to link codeblocks to boost::thread
Bruno,
The symbols it's looking for are should be in your implementation's C++ runtime library. Typically the kind of error you cite is caused by using gcc instead of g++ to do the linking step, though I'm a bit surprised not to see similar errors reported about iostream support. The only other thought I have is that maybe codeblocks is actually using a different compiler than the one you used to build Boost.Threads.
Yeah, these look like errors I've gotten in the past when I tried to link boost libraries built with one version of gcc with my code built with another version of gcc. Regards, Nate.

Thanks to all you guys!
I downloaded the new release of Code::Blocks with MinGW, and built the boost
with
this version of MinGW.
Now everything is working fine!
Thanks very much!
2011/1/14 Nathan Ridge
Date: Thu, 13 Jan 2011 21:07:51 -0500 From: dave@boostpro.com To: boost-users@lists.boost.org Subject: Re: [Boost-users] Error '__Unwind_Resume' when trying to link codeblocks to boost::thread
Bruno,
The symbols it's looking for are should be in your implementation's C++ runtime library. Typically the kind of error you cite is caused by using gcc instead of g++ to do the linking step, though I'm a bit surprised not to see similar errors reported about iostream support. The only other thought I have is that maybe codeblocks is actually using a different compiler than the one you used to build Boost.Threads.
Yeah, these look like errors I've gotten in the past when I tried to link boost libraries built with one version of gcc with my code built with another version of gcc.
Regards, Nate. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- ================================ Bruno Ferraz do Amaral Ciências da Computação - ICMC Universidade de São Paulo - USP São Carlos =================================
participants (4)
-
Bruno Ferraz do Amaral
-
Dave Abrahams
-
Nathan Ridge
-
Simon Mpasi