Skip to content

Instantly share code, notes, and snippets.

@wfxr
Last active September 19, 2016 07:39
Show Gist options
  • Select an option

  • Save wfxr/8ad5735a7bfe386053da to your computer and use it in GitHub Desktop.

Select an option

Save wfxr/8ad5735a7bfe386053da to your computer and use it in GitHub Desktop.

Build the x86 binaries

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

Build the x64 binaries

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

ISSUES

boost库在Windows下使用默认选项编译,在使用时会提示未知的Windows版本,假定为xp;

解决方案是配置编译参数b2 release define=BOOST_USE_WINAPI_VERSION=xxx,xxx为十六进制数,表示Windows的版本号。

完整的Windows版本号列表在这里:https://msdn.microsoft.com/en-us/library/6sehtctf.aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment