Thursday, May 17, 2007

使用vc7.1编译boost1.34

boost编译了好几次,每次编译前都忘了上次怎么做的,这次还是记下来好



1.tools/jam/ 下运行build_dist编译出bjam并拷贝到boost目录下

2.设置环境变量,BOOST_ROOT,PYTHON_LIB,PYTHON_INCLUDE,PYTHON_ROOT,PYTHON_VER等

3.tools/build/v2下设置user-config.jam文件,指定好编译使用toolset:

using msvc : 7.1 : D:/My Software/Microsoft Visual Studio .NET 2003/Vc7/bin/cl.exe ;
using python : 2.4 : D:/Python24 ;

4.编译: bjam --v2 link=shared release stage





Powered by ScribeFire.