环境:

WIN10

VS2015


1、下载

登陆boost的官网: http://www.boost.org/


windows下 boost库的安装这里显示当前版本为1.60.0,直接下载 boost_1_60_0.zip

下载完成后解压(这里我解压到了E:\boost)

windows下 boost库的安装



2、编译

打开“VS2015开发人员命令提示”

windows下 boost库的安装

注意,如果打开出现

cannot determine the location of the vs common tools folder

解决方法:在path环境变量中,添加 C:\Windows\System32即可

如下图

windows下 boost库的安装

然后,用cd命令进入boost解压后的目录,然后执行bootstrap.bat

windows下 boost库的安装

执行完成后

输入

bjam stage --toolset=msvc-9.0 --without-python --stagedir="这里输入boost的根目录" link=static runtime-link=shared runtime-link=static threading=multi debug release

(直接复制,然后修改双引号里面的内容即可)

很慢,耐心等

转载于:https://blog.51cto.com/zhweizhi/1760312

相关文章:

  • 2022-12-23
  • 2021-05-29
  • 2021-06-30
  • 2022-12-23
  • 2021-07-16
猜你喜欢
  • 2021-09-04
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案