下載Boost1.44
解壓后運行bootstrap,編譯bjam
在命令行boost目錄中里輸入
bjam –with-system --with-regex --with-date_time --with-thread --with-seri
alization --toolset=msvc-9.0
這里使用的vc2008,其他版本請自行調整
之前試過網上其他教程,有這么寫的
bjam --without-python --toolset=msvc-9.0 --with-thread --with-date_time --with-regex -
-with-serialization
結果報錯error: both --with-<library> and --without-<library> specified
所以將without去掉,只寫with就可以正常編譯
使用時,包含boost_1_44_0\目錄,lib在boost_1_44_0\stage\lib即可