转:在VS2013中安装配置boost_1_58_0库
来源:互联网 发布:java长链接转换短链接 编辑:程序博客网 时间:2024/06/15 11:43
Boost下载地址:http://sourceforge.net/projects/boost/files/boost/1.42.0/
下载好了Boost库,下面开始编译,解压boost文件到本地目录(如G:\boost_1_55_0),可以发现解压后的文件中有一个bootstrap.bat文件。然后以管理员身份打开cmd窗口,:
上述命令执行完毕后可以发现G:\boost_1_55_0下新生成了一个bjam.exe文件
在命令窗口中输入语句:bjam.exe。
至此我们已经完成了boost库的安装,下面需要配置一下VS2013了。新建一个VS2013控制台应用程序(工程名为boostest),添加如下代码
#include "stdafx.h"#include <boost/lexical_cast.hpp> #include <iostream> using namespace std;int main(){ using boost::lexical_cast; int a = lexical_cast<int>("123"); double b = lexical_cast<double>("123.0123456789"); string s0 = lexical_cast<string>(a); string s1 = lexical_cast<string>(b); cout << "number: " << a << " " << b << endl; cout << "string: " << s0 << " " << s1 << endl; int c = 0; try { c = lexical_cast<int>("abcd"); } catch (boost::bad_lexical_cast& e) { cout << e.what() << endl; } return 0;}
添加boostest工程的包含目录和库目录
包含目录添加 G:\boost_1_55_0
库目录添加 G:\boost_1_55_0\stage\lib
具体如下图
c/c++-〉附加包含目录〉\boost_1_58_0
链接器->附加库目录->\boost-1-58-0\stage\lib
阅读全文
0 0
- 在VS2013中安装配置boost_1_58_0库
- 转:在VS2013中安装配置boost_1_58_0库
- 怎样在VS2013中安装配置boost_1_55_0库--百度经验
- 怎样在VS2013中安装配置boost_1_55_0库
- VS2008 配置boost_1_58_0
- 在VS2013中配置GDAL库
- 在Win10,VS2013 中配置CGAL库
- VS2013中安装配置Boost库
- VS2013中安装、配置Boost库
- VS2013中安装配置boost_1_55_0库
- linux下安装boost_1_58_0
- Windows下boost安装及其在VS2013中配置
- Windows下boost安装及其在VS2013中配置
- Windows下boost安装及其在VS2013中配置
- 在VS2013中配置Opengl
- 在VS2013中配置OpenCV
- 如何在VS2013上配置MPIR库(单个项目中)
- VS2013中安装配置和使用Boost库
- FFMPEG类库打开流媒体的方法(需要传参数的时候)
- java 设计模式-单例模式
- linux--chown
- docker 安装showdoc
- jQuery——选中、不选中、全选、取消全选等复选框操作
- 转:在VS2013中安装配置boost_1_58_0库
- Win7下python集成redis
- 为什么要对URL进行encode
- webstorm安装vue插件
- 你能否成为一个全栈工程师
- Delphi的新工具单元IOUtils
- linux监控网卡流量、cpu命令
- get请求加上head
- C++实现图像的各种旋转操作