Boost logo

Boost Users :

Subject: Re: [Boost-users] build boost with specific msvcrt.lib
From: Abhay Mhatre (mhatre.abhay_at_[hidden])
Date: 2015-08-21 12:39:43

Precisely I am using this command to build boost library

*b2.exe toolset=msvc --build-type=complete stage --with-test link=shared

build system i have uses vcxproj file. This file contains link to specific
msvcrt.lib (~\cxCached\msvctool\msvcrt.lib)

i have visual studio 12 installed on my machine

so when i build boost it uses msvc12 and hence while debugging i see
msvc012.dll in lm option .

however my project uses msvcrt.dll

since i am using header files allocation for boost object happens from
msvcrt.dll and free happens from boost dll in tern msvcrt12.dll. This
causes heap corruption.

Lorenzo mentioned that vs contains batch file to update default msvcrt
, what is the name of this batch file?

the work around I used to solve this temporarily is move "new" to .ipp

On Wed, Aug 19, 2015 at 11:37 PM, Vladimir Prus <vladimir.prus_at_[hidden]>

> On 14-Aug-15 10:36 PM, Abhay Mhatre wrote:
>> is it possible to provide specific msvcrt.lib while building boost. It
>> uses
>> default one and my build system uses the one specified in build system.
>> this causes heap corruption at the end of program termination.
> Hi Abhay,
> in a normal source build, you'll have several variants, whose naming is
> described at:
> If you pick the variant matching your projects, things should work fine.
> Could you describe which MSVC runtime your project is using and which one
> is used
> by Boost libraries you link to?
> - Volodya
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at