bjam --toolset=msvc --build-type=complete stage
Create the directory lib\x86
Move the contents of stage\lib
to lib\win32
Remove the directories bin.v2
and stage
bjam --toolset=msvc address-model=64 --build-type=complete stage
Create the directory lib\x64
Move the contents of stage\lib
to lib\x64
Remove the directories bin.v2
and stage
boost库在Windows下使用默认选项编译,在使用时会提示未知的Windows版本,假定为xp;
解决方案是配置编译参数b2 release define=BOOST_USE_WINAPI_VERSION=xxx
,xxx为十六进制数,表示Windows的版本号。
完整的Windows版本号列表在这里:https://msdn.microsoft.com/en-us/library/6sehtctf.aspx