Boost logo

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-14 08:17:51


 <frederic.bron <at> alcan.com> writes:

>
>
> I have just rerun the regression tests with the following user-config.jam:
>
> using gcc : mingw_3.4.4 : /usr/bin/g++ : <compilerflags>-mno-cygwin
> <compileflags>-DBOOST_WINDOWS_API <compileflags>-DBOOST_HAS_WINTHREADS
> <linkflags>-mno-cygwin ;
>
> However, the result is not better because:
>
> nearly each time -DBOOST_HAS_WINTHREADS is used, -DBOOST_THREAD_POSIX
> is used (257 times)! 82 times, -DBOOST_HAS_WINTHREADS is used alone.

I've been having a closer inspection at the code for Boost.Thread,
Boost.FileSystem and Boost.Config and seems like you'd have to define
these three macros to go with Win32 threads everywhere:

-DBOOST_HAS_WINTHREADS (Boost.Config)
-DBOOST_WINDOWS_API (Boost.Filesystem)
-DBOOST_THREAD_WIN32 (Boost.Thread)

Please tell us if this improves things.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


Boost-testing list run by mbergal at meta-comm.com