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 <boost/thread/thread.hpp>
#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;
}
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