bjam --build-type=complete toolset=msvc-10.0 threading=multi link=static address-model=64
Remarks:
Command | Options | Meanning
--------------|------------|----------------------------------
| msvc-6.5 | Visual Studio 6.0, Service Pack 5
| msvc-8.0 | Visual Studio 2005
toolset | msvc-9.0 | Visual Studio 2008
| msvc-10.0 | Visual Studio 2010
| msvc-11.0 | Visual Studio 2012
--------------|------------|----------------------------------
link | static | static libraries
| shared | shared libraries
--------------|------------|----------------------------------
address-model | 32 | x32 VC++ compilers
| 64 | x64 VC++ compilers
vc 和 intel 编译器
编译 64 位 boost 库的方法:
bjam.exe --toolset=msvc address-model=64 --build-type=complete
bjam.exe --toolset=intel address-model=64 --build-type=complete
编译 32 位 boost 库的方法:
bjam.exe --toolset=msvc --build-type=complete
bjam.exe --toolset=intel --build-type=complete
一个参数开关的差别,然后就慢慢喝茶等待吧。
编译出来的库文件名称都是一样的,小心不要把 32 位和 64 位的文件互相覆盖了
bjam stage --toolset=msvc-11.0 --without-mpi --without-wave --without-graph --without-math --without-serialization --stagedir="D:\dev_proj\boost_1_54_0\自定义输出" link=shared runtime-link=shared threading=multi debug release
////////////////////////////////////////////////////////////////////////////
.\b2 --build-type=complete toolset=vc11