Jim,

 

I am compiling with BOOST_THREAD_USE_LIB. I am not linking with it though. The CPP should only need it on compile, right?

 

I see that the regressions look good other than that one test. I have tried both the MSVC build and your patched build and I get this same set of errors.

 

Are you aware of anything that changed between 1.35 and 1.45 that would cause these symbols to have changed (I doubt it but it’s worth asking)? I’ve looked but the usage pertinent to our code seems to be the same as 1.35.0.

 

Dustin

 

From: Jim Bell [mailto:Jim@JC-Bell.com]
Sent: Tuesday, January 04, 2011 3:37 PM
To: boost-users@lists.boost.org
Cc: Dustin T. Clifford
Subject: Re: Re: [Boost-users] Mingw64 Boost Threads Build

 



On 1:59 PM, Dustin T. Clifford wrote:

Jim,

 

The build worked! It’s the first successful MinGW64 build that I have had. This build was performed from within Cygwin using the mingw64 toolset. I am attempting a build with the MinGW build you pointed me to. Thank again!

Glad to hear it!


 

However, when I attempt to compile the archive into my library I get the below error.

 

Isdmain.o:Isdmain.cpp:(.text+0x16c3): undefined reference to `boost::thread::start_thread()'

[...]

Isdmain.o:Isdmain.cpp:(.text+0x9e65): undefined reference to `boost::thread::~thread()'

[...]

Isdmain.o:Isdmain.cpp:(.text+0xe23a): undefined reference to `boost::thread::thread()'

[...]

Isdmain.o:Isdmain.cpp:(.text$_ZN5boost6threadaSENS_6detail13thread_move_tIS0_EE[boost::thread::operator=(boost::detail::thread_move_t<boost::thread>)]+0x131): undefined reference to `boost::thread::~thread()'


Assuming your linker command-line is right ... can you tell if any references are defined?  Are you compiling with the BOOST_THREAD_USE_DLL or BOOST_THREAD_USE_LIB flags? They're not well-documented but necessary <https://svn.boost.org/trac/boost/ticket/4921>.

As a point of reference, the regression tests are linking correctly.



 

I have examined the library symbols and, indeed, I cannot find the appropriate externs. I jumped from 1.35.0 to 1.45.0. I was just wondering if you have any idea why this would start happening? Am I missing something? Any help would be greatly appreciated.

[...]

I did run the regression test last night, FYI...

http://www.boost.org/development/tests/trunk/developer/thread.html

Last column. All tests pass but one.

HTH.
-Jim