Boost logo

Boost Users :

Subject: Re: [Boost-users] Trying to compile and use boost on proprietary complier similar to MPICH2 CXX
From: Riccardo Murri (riccardo.murri_at_[hidden])
Date: 2012-08-31 05:53:42


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.

Cheers,
Riccardo


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