Boost logo

Boost-Build :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-06-21 14:06:04


> -----Original Message-----
> From: boost-build-bounces_at_[hidden]
> [mailto:boost-build-bounces_at_[hidden]] On Behalf Of
> Phillip Seaver
> Sent: Wednesday, June 21, 2006 11:01 AM
> To: Boost.Build developer's and user's list
> Subject: Re: [Boost-build] Msvc8 + bjam
>
> Sohail Somani wrote:
> > Hi,
> >
> > Boost.Build V2 (Milestone 10)
> > Boost.Jam 03.1.12
> >
> > If you do a single threaded build with msvc8, you will get messages
> > like:
> >
> > cl : Command line warning D9002 : ignoring unknown option '/ML'
> >
> > The reason is that Microsoft doesn't support the single threaded
> > statically linked CRT anymore.
> >
> > Anyway, in msvc.jam, the lines:
> >
> > flags msvc.compile CFLAGS
> >
> <runtime-debugging>off/<runtime-link>static/<threading>single : /ML ;
> > flags msvc.compile CFLAGS
> >
> <runtime-debugging>on/<runtime-link>static/<threading>single : /MLd ;
> >
> > Should be changed to be /MT and /MTd respectively for msvc8 and up.
>
> I would think it would be a bad idea to compile everything else as
> single-threaded and link against the multi-threaded CRT. It
> sounds like
> <threading>single should fail to compile for msvc8.
>
> If someone does that, they should probably also disallow
> <threading>single with <runtime-link>shared, since there's no
> such CRT
> (AFAIK) in msvc-6 and 7.x

I wish boost jam would propogate all features :) Its easier to get a
correct build this way.

Anyway, if your code is single threaded, its no biggie to link to the
multithreaded library. After all, all this really means is that the
library is threadsafe.

If you are linking code compiled with different versions of visual c++,
you better not be sharing runtimes _anyway_. It would be difficult to do
it, from what I know.

Or is this not what you mean?

Sohail


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