rem This scripts updates the environment (that needs to be previously set up for building with vcvarsall) rem so that the boost will build with xp compatibility in VS2017. rem Execute this script in the boost directory. setlocal set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Include;%INCLUDE% set PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Bin;%PATH% set CL=/D_USING_V110_SDK71_;%CL% set LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\7.1A\Lib;%LIB% set LINK=/SUBSYSTEM:CONSOLE,5.01 %LINK% b2 -j 8 --toolset=msvc-14.1 --link=static --threading=multi --runtime-link=shared address-model=32 define=_BIND_TO_CURRENT_VCLIBS_VERSION define=BOOST_USE_WINAPI_VERSION=0x0501 --build-type=complete cxxflags="/Zc:threadSafeInit-" define=BOOST_UUID_NO_SIMD --stagedir=lib-14.1\x32 stage rmdir /S /Q bin.v2