|
Boost Testing : |
Subject: Re: [Boost-testing] [bronf][mingw] pthreads not linked (was Re: [sandia][intel-linux] pthreads not linked)
From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2008-12-15 09:38:21
<frederic.bron <at> alcan.com> writes:
>
>
> added -DBOOST_HAS_WINTHREADS -DBOOST_WINDOWS_API -DBOOST_THREAD_WIN32
> but still looking for pthread because (I think) -DBOOST_THREAD_POSIX
> is automatically added (see uploaded results when next
> updated). This flag is perhaps stronger than BOOST_THREAD_WIN32?
Yep, BOOST_THREAD_POSIX is defined inside libs/thread/build/Jamfile.v2
even if you haven't done it when no <threadapi> is specified.
This is a tough nut to crack!
>From the information provided by Anthony Williams at
http://lists.boost.org/boost-users/2008/12/43183.php
seems like you have to add all of the following
<threadapi>win32
<target-os>NT
<compileflags>-DBOOST_WINDOWS_API
<compileflags>-DBOOST_HAS_WINTHREADS
<compileflags>-DBOOST_THREAD_WIN32
Good luck!
JoaquÃn M López Muñoz
Telefónica, Investigación y Desarrollo