VS 2010 编译安装 boost 库 -(和 jsoncpp 库共存)

boost库的简单应用很容易,网上有很多资料,但是,如果要json 和 boost 一起使用就会出现这样那样的问题, 有时候提示找不到 “libboost_coroutine-vc100-mt-sgd-1_55.lib”,对此,可以按照如下方式进行安装:

1、下载,不多说;

2、解压,不多说:

  加入解压在 D:SoftWareoost_1_55_0

3、打开windows命令行,转到“boost_1_47_0”目录下。运行:bootstrap.bat,生成b2.exe和bjam.exe两个Build文件。

4、执行:bjam toolset=msvc-10.0 variant=debug,release threading=multi runtime-link=static install;

   在 C 盘会生成 Boost 文件夹

5、配置:

  在项目》属性》VC++选项里面

  include目录:D:SoftWareoost_1_55_0;$(IncludePath);
  library 目录:C:Boostlib;$(LibraryPath);

然后就可以使用了!!!

原文地址:https://www.cnblogs.com/shanguanghui/p/3579693.html