Boost logo

Boost-Build :

Subject: Re: [Boost-build] Default threading model in Linux
From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2008-11-09 12:54:10


Vladimir Prus <ghost <at> cs.msu.su> writes:

>
> On Sunday 09 November 2008 20:16:42 Joaquin M Lopez Munoz wrote:
> > Put these two files under a folder foo in boost/libs and
> > play with bjam and different settings or threading:
> >
> > GCC under Cygwin:
> > threading=single
> > BOOST_HAS_THREADS defined
> > BOOST_HAS_PTHREADS defined
>
> This is happening for me on Linux, too. There's no -pthread in gcc command
> line, so either Boost.Config is wrong, or libstdc++ is back to setting symbols
> it has no business setting (like _REENTRANT).

What do you suggest me to do? Maybe bring this to the attention
of Mr. Maddock?

> > threading=multi
> > BOOST_HAS_THREADS defined
> > BOOST_HAS_PTHREADS defined
> >
> > MSVC 8.0:
> > threading=single
> > BOOST_HAS_THREADS defined
> > BOOST_HAS_PTHREADS undefined
>
> What target path is used? MSVC 8.0 does not have single-threaded shared
> runtime, so it forces threading=multi.

threading=multi
..\..\bin.v2\libs\foo\foo.test\msvc-8.0express\debug\threading-multi\

threading=single
..\..\bin.v2\libs\foo\foo.test\msvc-8.0express\debug\

threading=multi runtime-link=static
Skipping build of: ./foo_test <build>no in common properties

threading=single runtime-link=static
Skipping build of: ./foo_test <build>no in common properties

What do the last two messages mean?

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


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk