1、下载boost开发库源码。

2、使用vs2008的命令行工具,进入到源码目录xxx/boost_1_58_0,命令行中运行bootstrap.bat,生成文件b2.exe,在命令行中执行b2.exe。

3、等待boost库编译连接完成,提示如下:

The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
    xxx/boost_1_58_0
The following directory should be added to linker library paths:
    xxx\boost_1_58_0\stage\lib

4、注意编译出的所有静态库均为vs2008的版本,使用其它IDE无法编译。

5、使用vs2008创建工程时,include添加boost_1_58_0目录,lib添加boost_1_58_0\stage\lib目录。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-10
  • 2022-01-19
  • 2021-04-20
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案