Boost logo

Boost-Build :

Subject: [Boost-build] Building boost with msvc and compiler option /MD or /MDd
From: Hanno Hugenberg (Hanno.Hugenberg_at_[hidden])
Date: 2011-03-14 08:35:21


i'm stuck and a bit confused, maybe you can help by just saying YES or
what i am doing wrong :D

I build boost useing the following bjam call:

bjam --build-dir=bin.test --toolset=msvc-9.0 -link=static
--runtime-link=shared --threading=multi

This results sucessfully in libraries like:


I want to use the boost library in a VC9 Project, compiled with the /MD or
/MDd option, and i am a bit confused by the "..-mt-.." letters.

So my questions are:
        - 1. Is boost compiled (with the above parameters) useing the
Visual Studio /MT compiler option?
        - 2. If so, how can i compile boost as static lib with the /MD and
the /MDd options?

        - I recently run into some Heap-errors during debug mode, while
initializing some boost::asio objects. i think, different compile options
between boost and my project may be the reason.

Best regards and thank you very much,
Hanno Hugenberg

Dipl.-Inf. Hanno Hugenberg
Fraunhofer Institut für Fabrikbetrieb und -automatisierung IFF
Geschäftsfeld Virtuell Interaktives Training
Sandtorstr. 22, 39106 Magdeburg, Germany
Telefon +49 (0) 391 40 90-710

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at