09/18
14:22
IT

编译 Boost

boost 目录下运行

bootstrap.bat

看到会生成 b2.exe,继续运行
Win32(vs2013)

b2 --with-system --toolset=msvc-12.0 --build-type=complete stage

x64(vs2013)

b2 --with-system --toolset=msvc-12.0 --build-type=complete architecture=x86 address-model=64 stage

则可编译 system 模块, 若想要编译所有模块,可执行
Win32(vs2013)

b2 --toolset=msvc-10.0 --build-type=complete stage

x64(vs2013)

b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage

参考链接 http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010

发表评论