编译boost_1_39_0

E:\boost_1_39_0>bjam --toolset=msvc stage variant=debug threading=multi link=static

你可以根据需要选下面的选项:


toolset=toolset Indicates the toolset to build with.


variant=debug|release Select the build variant


link=static|shared Whether to build static or shared libraries


threading=single|multi Whether to build single or multithreaded binaries


runtime-link=static|shared Whether to link to static or shared C and C++ runtime.



生成的文件分别在bin.v2(中间文件,编译完成可以删除整个目录)和stage/lib (702MB)中,


将E:\boost_1_39_0\stage\lib加入VC库路径中可以编译,将E:\boost_1_39_0\加入VC include路径即可。

posted on 2016-12-03 10:21  westnight  阅读(144)  评论(0编辑  收藏  举报

导航