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,编译成功后,库文件所在目录:\boost_1_47_0\stage\lib
g,编译成功后提示:
[plain] view plaincopy
- The Boost C++ Libraries were successfully built!
- The following directory should be added to compiler include paths:
- E:/Himalayas/dev/6-SDK/cgal/source/CGAL-3.7/auxiliary/boost/boost_1_47_0
- The following directory should be added to linker library paths:
- E:\Himalayas\dev\6-SDK\cgal\source\CGAL-3.7\auxiliary\boost\boost_1_47_0\sta
- ge\lib
编译过程录像: http://download.csdn.net/source/3560492
时间: 2024-10-27 11:22:23