首页 > 代码库 > vs2012 boost库安装配置

vs2012 boost库安装配置

www.boost.org下载boost库,解压


打开vs2012的Visual Studio Tools中的VS2012 x86 Native Tools Command Prompt


进入boost库目录执行bootstrap.bat,生成bjam.exe工具


执行bjam toolset=msvc-12.0 variant=debug,release threading=multi link=static 生成boost库


build成功会显示 The Boost C++ Libraries were successfully built!


创建新工程后点击Properties--C/C++--General--Additional Include Directories改为boost所在路径


Properties-Link--General中Additional Library Directories改为boost路径下\bin\vc11\lib所在路径即可

vs2012 boost库安装配置