几句话说明boost库的编译(windows下面)-备忘

1.在 boost安装目录下面,进入到 tools/build/v2/engine 双击执行build.bat, 会在当前目录下面出现新的目录:bin.ntx86
2. 复制bin.ntx86下面的bjam.exe到boost安装目录下面
3.开始执行编译boost的操作,bjam.exe --help可以查看帮助
例如:
E:\boost_1_55_0>bjam.exe --toolset=msvc-10.0 link=static threading=multi runtime
-link=static variant=debug --stagedir=stage_dir --with-context


其中 --with-context是编译context库,如果为--with-filesystem就是编译filesystem库, --stagedir表示最终生成的库的存放目录
还发现在编译时,会在e:\boost_1_55_0下面出现bin.v2的新目录,里面有相应库的obj文件(在bin.v2/libs下面)

猜你喜欢

转载自blog.csdn.net/wangxugangzy05/article/details/40823919