Change the content of the below files in boost folder( which is downloaded and extracted)
Folder : boost_1_54_0\tools\build\v2\tools Files: 1. msvc.jam
content changed :
for 32 bit :
toolset.flags msvc LINKFLAGS console : /subsystem:console,5.01 ;
for 64 bit:
toolset.flags msvc LINKFLAGS console : /subsystem:console,5.02 ;
- msvc.pycontent changed : for 32 bit : toolset.flags('msvc', 'LINKFLAGS', ['console'], ['/subsystem:console,5.01'])
for 64 bit:
toolset.flags('msvc', 'LINKFLAGS', ['console'], ['/subsystem:console,5.02'])Folder : boost_1_54_0\tools\build\v2\engine Files: 1. build.bat content changed : for 32 bit/ 64 bit : 1. fix the Visual Studio Path Exactly like instead of "%ProgramFiles%- change to %ProgramFiles(x86)%
2. Add " /D _USING_V110_SDK71_ " to BOOST_JAM_CC =cl command before Skip_VC11Open vs2012 developer Command prompt and type the following commands
** update 7.1A SDK path as per your installation
call "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat"
set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;%INCLUDE%
set PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;%PATH%
set LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib;%LIB%
bootstrap
Pick the command as per the OS Type (32/64 bit)
for 32 bit :
b2 toolset=msvc-11.0 variant=debug,release link=shared runtime-link=shared address-model=32
for 64 bit :
b2 toolset=msvc-11.0 variant=debug,release link=shared runtime-link=shared address-model=64
To compile any sample for release and debug versions follow this:
Open vs2012 developer Command prompt and type the following commands
call "%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat"
set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;%INCLUDE%
set PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;%PATH%
set LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib;%LIB%
go to the directory of the sample : ex: boost_1_54_0\libs\test\tools\console_test_runner
type the following command
\boost_1_54_0\bjam.exe --v2 toolset=msvc-11.0 variant=debug,release link=shared threading=multi runtime-link=shared
libboost_date_time-vc110-mt-gd-1_53.libfile inC:...\boost_1_53_0\stage\lib? - Igor R.