VS2008下编译boost_1_47_0

 

1,boost下载

    如果不想自己编译,可下载http://boostpro.com/download/boost_1_47_setup.exe,安装后,程序会提供选项供下载已经编译好的库文件,基于vs2008的所有库大概有1.3G。

    下载boost最新版本:http://cdnetworks-kr-2.dl.sourceforge.net/project/boost/boost/1.47.0/boost_1_47_0.7z

2,boost编译

      a,解压boost_1_47_0.7z

      b,打开 Visual Studio 2008 命令提示

      c,切换路径到boost_1_47_0根目录

      d,运行bootstrap.bat,生成b2.exe

      e,运行b2.exe,编译出指定的boost库,命令如下:

            b2 --toolset=msvc-9.0 --build-type=complete

      f,编译成功后,库文件所在目录:oost_1_47_0stagelib

      g,编译成功后提示:

[plain] view plaincopy
 
  1. The Boost C++ Libraries were successfully built!  
  2.   
  3. The following directory should be added to compiler include paths:  
  4.   
  5.     E:/Himalayas/dev/6-SDK/cgal/source/CGAL-3.7/auxiliary/boost/boost_1_47_0  
  6.   
  7. The following directory should be added to linker library paths:  
  8.   
  9.     E:Himalayasdev6-SDKcgalsourceCGAL-3.7auxiliaryoostoost_1_47_0sta  
  10. gelib  

编译过程录像: http://download.csdn.net/source/3560492

  

原文地址:https://www.cnblogs.com/lvdongjie/p/4445210.html