Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-07-12 01:32:21


On Monday 10 July 2006 16:05, Jorge Suit Perez Ronda wrote:
> Hello,
>
> On Sun, 2006-07-09 at 20:28 +0300, Andrei Melnikov wrote:
> > On 07/07/06, Jorge Suit Perez Ronda <josp_at_[hidden]> wrote:
> > > Hello, I'm using
> > >
> > > bjam --version
> > > Boost.Build V2 (Milestone 10)
> > > Boost.Jam 03.1.12
> > >
> > > nightly build, downloaded July, 7 2006
> > >
> > > I'm trying to build a static lib with msvc and I see (with -d2 flag)
> > > that bjam is using the linker flag /MD, is that correct or should it
> > > be /MT? or how can I force the objects file to be compiled with /MT?
> > >
> > > Attached is a simple project to test.
> >
> > What command line do you use? /MD is used for runtime-debugging=on,
> > /MT is used for runtime-debugging=off
>
> i typed
>
> bjam -d2 link=static release

I think that will build static library, that links to dynamic runtime. If I
understand Andrei and Phillip correctly, that will mean /MD flag, just as you
observe. If you want /MT flag, for static runtime, you should use:

  bjam -d2 link=static runtime-link=static release

HTH,
Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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