Windows下:
bjam.exe --build-type=minimal --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread toolset=msvc-9.0 variant=release link=static threading=multi address-model=64 stage
linux下:
./bjam --build-type=minimal --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread variant=release link=static threading=multi address-model=64 install
编译boost zlib
1下载zlib(http://www.zlib.net/)
2,设置 zlib的路径(进入 dos 界面)
set ZLIB_SOURCE=" E:/zlib-1.2.7"
3编译
bjam --toolset=msvc-9.0 --with-iostreams --build-type=complete
注:zlib不需要提前编译
编译boost.log
bjam --with-log variant=release define=BOOST_LOG_WITHOUT_EVENT_LOG define=BOOST_LOG_USE_WINNT6_API define=BOOST_LOG_DYN_LINK stage