【20171122】Ubuntu16.04安装boost库
来源:互联网 发布:windows 98 双核 编辑:程序博客网 时间:2024/06/07 10:34
参考此页教程第二种方法
http://blog.chinaunix.net/uid-12226757-id-3427282.html
1.在boost官网上(www.boost.org)下载最新版本
解压到指定位置(最好在【/home】目录下,为了方便不同用户使用。不过,这电脑只有我一人用所以随便了,个人放在【/下载】目录)
2.进入此目录下右键打开终端,配置环境
sudo ./bootstrap.sh
3.运行之前配置环境后得到的文件,使用./命令
./bjam
4.检验安装成功否:在linux下任意目录下创建test.cpp
#include <iostream>#include "boost/lexical_cast.hpp"#include <string.h>#include <string>using namespace std;int main(){ string s="100"; int a=boost::lexical_cast<int>(s); int b=1; cout<<(a+b) <<endl;//输出101 return 0;}
运行命令
g++ test.cpp -o test./test
阅读全文
0 0
- 【20171122】Ubuntu16.04安装boost库
- ubuntu16.04安装boost
- Ubuntu16.04 安装C++ boost库
- ubuntu16.04下安装boost环境
- 安装gcc-6系列与安装boost (Ubuntu16.04LTS)
- ubuntu16.04安装boost 1.65安装配置说明以及参数
- Ubuntu16.04 安装Boost与Opencv及CMakeLists.txt配置
- ubuntu16.04 安装PCL库
- ubuntu16.04编译boost for Android
- Ubuntu16.04安装32位支持库
- Ubuntu16.04安装32位支持库
- Ubuntu16.04安装32位支持库
- Ubuntu16.04安装32位支持库
- Ubuntu16.04安装32位支持库
- ceres库编译安装ubuntu16.04
- Ubuntu16.04安装32位支持库
- Ubuntu16.04安装chrome
- Ubuntu16.04安装Atom
- FTP SFTP TFTP的区别
- 多年iOS开发经验总结
- 批量下载www.freemidi.org 音频文件
- oralce数据库中使用in关键字查询时配合order by instr与in关键字相同顺序的查询
- ubuntu16.04跟新cmake
- 【20171122】Ubuntu16.04安装boost库
- CSRF攻击与防御
- 在线翻译泄露:再次证明数据泄密无处不在
- 源代码防泄密-SDC
- 【PyCharm笔记】消除PyCharm中满屏的波浪线
- http://www.xiukee.com/show_530564.html
- jquery dataTables插件详解
- Java并发学习之四种线程创建方式的实现与对比
- RPG游戏黑暗之光Part4:物品模块