VS2012编译boost1.53
来源:互联网 发布:淘宝dsr什么意思 编辑:程序博客网 时间:2024/05/04 21:40
一、下载Boost库
boost_1_53_0.zip (http://www.boost.org/users/download/),解压到F:boost_1_50_0
要做Python开发的还需下载: python-2.7.3.msi (http://www.python.org/)
二、编译Boost库
1. 编译jam
在工具栏启动Visual Studio 2012 Command Prompt(VS2012命令提示) , 进入 boost的解压目录,即D:\boost_1_53_0, 输入bootstrap,便在boost根目录下生成bjam.exe文件。具体命令如下:
>D:\
>cd F:\boost_1_53_0
>bootstrap
【 注:在网上看了许多教程,老版本需要进入tools/jam/目录下运行build_dist.bat 生成bjam.exe,这点与老版本不同。】
一般不需要全部编译,部分编译就够用了。
全部编译的命令行:d:\boost>bjam --toolset=msvc-11.0 --build-type=complete stage
部分编译的命令行:d:\boost>bjam --toolset=msvc-11.0 --with-date_time --with-thread
查看需要编译库的命令行:bjam --show-libraries
编译成64位的命令:bjam --toolset=msvc-11.0 address-model=64 --build-type=complete stage
三、使用编译的静态库
配置属性-》链接器-》常规-》附加库依赖项-》D:\boost\stage\lib
配置属性-》链接器-》输入-》附加依赖项-》libboost_date_time-vc110-mt-gd-1_53.lib
然后在项目中引用库的头文件就可以使用了。
http://hi.baidu.com/qicosmos/item/307a4a60facd2009a1cf0f82
- VS2012编译boost1.53
- VS2012编译boost1.53
- VS2012编译boost1.53
- VS2012编译boost1.53
- VS2012编译boost1.53
- VS2012 编译 boost1.53/ boost1.49
- AMGCL--VS2012编译boost1.53
- VS2012 下编译boost1.52
- VS2012 下编译boost1.52
- VS2012 下编译boost1.52
- VS2012 下编译boost1.52
- VS2012 下编译boost1.52
- 编译并使用boost库(win7+boost1.53+vs2012)
- 编译使用boost库(win7+boost1.53+vs2012)
- 手把手教你:用VS2012编译boost1.53
- 编译并使用Boost库(Win7+Boost1.53+VS2012)
- 编译并使用Boost库(Win7+Boost1.53+VS2012)
- vs2012+boost1.59+win8.1编译
- oracle 的RAC集群详解
- 搭建apache 虚拟目录-kernel-doc
- Myeclipse使用秘籍
- Android应用开发之图片热点效果实现
- 趣味编程PHP
- VS2012编译boost1.53
- ictclas 在java中如何在tomcat上运行
- 数据库设计原则
- Oracle Linux 6.3 Installation on Virtual Box
- 动态规划---LIS
- 图文讲解VS2010程序打包操作 安装卸载
- java---装饰模式
- php 调用函数实现二级分类
- 对图片进行压缩