Boost logo

Boost Users :

Subject: Re: [Boost-users] Mingw64 Boost Threads Build
From: Jim Bell (Jim_at_[hidden])
Date: 2011-01-04 16:39:28


On 1/4/2011 3:18 PM, Dustin T. Clifford wrote:
>
> 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?
>
Yes.
>
>
>
> 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.
>
Worth asking, but not that I know of.

Here are the working command-lines from the regression test's bjam.log,
building & linking test_thread_lib, which passes:

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads
-DBOOST_ALL_NO_LIB=1 -DBOOST_TEST_NO_AUTO_LINK=1
-DBOOST_THREAD_USE_LIB=1 -I".." -c -o
"C:\Users\Jim\boost_rt\trunk\results\boost\bin.v2\libs\thread\test\test_thread_lib.test\gcc-mingw-4.6.0\debug\threading-multi\test_thread.o"
"..\libs\thread\test\test_thread.cpp"

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads
-DBOOST_ALL_NO_LIB=1 -DBOOST_TEST_NO_AUTO_LINK=1
-DBOOST_THREAD_USE_LIB=1 -I".." -c -o
"C:\Users\Jim\boost_rt\trunk\results\boost\bin.v2\libs\thread\test\test_thread_lib.test\gcc-mingw-4.6.0\debug\threading-multi\tss_null.o"
"..\libs\thread\test\..\src\tss_null.cpp"

    "g++" -o
"C:\Users\Jim\boost_rt\trunk\results\boost\bin.v2\libs\thread\test\test_thread_lib.test\gcc-mingw-4.6.0\debug\threading-multi\test_thread_lib.exe"
-Wl,--start-group
"C:\Users\Jim\boost_rt\trunk\results\boost\bin.v2\libs\thread\test\test_thread_lib.test\gcc-mingw-4.6.0\debug\threading-multi\test_thread.o"
"C:\Users\Jim\boost_rt\trunk\results\boost\bin.v2\libs\thread\test\test_thread_lib.test\gcc-mingw-4.6.0\debug\threading-multi\tss_null.o"
"C:\Users\Jim\boost_rt\trunk\results\boost\bin.v2\libs\test\build\gcc-mingw-4.6.0\debug\link-static\threading-multi\libboost_unit_test_framework-mgw46-mt-d-1_46.a"
"C:\Users\Jim\boost_rt\trunk\results\boost\bin.v2\libs\thread\build\gcc-mingw-4.6.0\debug\link-static\threading-multi\libboost_thread-mgw46-mt-d-1_46.a"
-Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g -mthreads

(Not sure why it brings in tss_null...)



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net