Boost logo

Boost-Build :

Subject: Re: [Boost-build] Building boost with msvc and compiler option /MD or /MDd
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2011-03-15 06:23:19


Hanno Hugenberg wrote:
>Hi,
>
>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

toolset, link, runtime-link and threading should have no dashes prefixed. I.e.,
try
bjam --build-dir=bin.test toolset=msvc-9.0 link=static
runtime-link=shared threading=multi

>This results sucessfully in libraries like:
>
>libboost_system-vc90-mt-1_46.lib
>
>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?
>
>
>Background:
> - 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

HTH,
Gevorg


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