vcvars32.bat is in the VC subdirectory of VS.
In the older scheme of things toolset=msvc would get you the most current MSVC. To get an older one you had to be more specific with the version number (I am not where I can actually look) but something like msvc-9.0 for VS 2008 I think.
Larry
From: Abhay Mhatre
Sent: Friday, August 21, 2015 12:39 PM
To: boost-users@lists.boost.org ; vladimir.prus@gmail.com ; lknain@nc.rr.com ; trivelli.lorenzo@konvergence.it ; Edward Diener
Subject: Re: [Boost-users] build boost with specific msvcrt.lib
Precisely I am using this command to build boost library
b2.exe toolset=msvc --build-type=complete stage --with-test link=shared threading=multi
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 files.
On Wed, Aug 19, 2015 at 11:37 PM, Vladimir Prus