|
Boost Users : |
Subject: Re: [Boost-users] Trying to compile and use boost on proprietary complier similar to MPICH2 CXX
From: Chris (chris_dev_at_[hidden])
Date: 2012-09-04 03:26:20
On 08/31/2012 11:53 AM, Riccardo Murri wrote:
> Hello Chris,
>
> On Wed, Aug 29, 2012 at 10:44 AM, Chris <chris_dev_at_[hidden]> wrote:
>> When it try to use boost using a proprietary MPIC++ compiler I have no
>> control over, I get the following errors:
>>
>> In file included from ../boost_1_43_0/boost/thread/detail/platform.hpp:17,
>> from ../boost_1_43_0/boost/thread/thread.hpp:12,
>> from ../boost_1_43_0/boost/thread.hpp:13,
>> from test.cpp:37:
>> ../boost_1_43_0/boost/config/requires_threads.hpp:47:5: error: #error
>> "Compiler threading support is not turned on. Please set the correct
>> command line options for threading: -pthread (Linux), -pthreads
>> (Solaris) or -mthreads (Mingw32)"
>
> This suggests that your compiler is not running with threads enabled,
> whereas you instructed `bjam` to compile the threaded version of
> Boost:
>
>> ./bjam cxxflags="-O2" release threading=multi link=static
>
> Try to compile with threading=single; if that works, you might want to
> check your compiler's docs on how to enable threading support.
Thanks Riccardo!
I've tried that now, also together with things like omitting -pthreads
or -lpthreads options for this compiler, but to no avail: the error
message from Boost remains the same.
Best,
Chris
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