linux boost_1_55
来源:互联网 发布:旅游拼车软件 编辑:程序博客网 时间:2024/06/14 13:57
从www.boost.org下载当前boost库,当前文件名为:boost_1_55_0.tar.gz
在当前位置解压。
tar -xvf boost_1_55.tar.gz
进入解压后的目录,执行bootstarp.sh脚本。
./bootstarp.sh
运行完毕后,目录中多出b2和bjam,运行b2。
./b2 install
会自动安装到/usr/local/include和/usr/local/lib中。
打印$PATH,查看是否在路径中,若没有请添加。
#include <iostream>#include <boost/lexical_cast.hpp>int main(){ int nValue = boost::lexical_cast<int>("123456789"); std::cout<< nValue << std::endl; return 0;}
编译:
g++ test.cpp -o test
如果执行后出现数字:123456789则说明成功。
0 0
- linux boost_1_55
- linux
- linux
- Linux
- Linux
- LINUX!
- Linux
- linux
- linux
- linux
- Linux
- linux
- linux
- linux
- linux
- Linux
- linux
- linux
- jQuery mobile网格布局
- C语言编译器浅析
- POJ 3321 Apple Tree
- IOS中NSTimer使用及runloop
- Error creating bean with name 'sessionFactory' defined
- linux boost_1_55
- Pear os 8 安装完那些事
- POJ 3185 The Water Bowls
- N-Queens
- 小公司技术管理者的点滴--挽留员工
- C语言实现线性表之顺序存储结构操作
- Java -- JDBC 获取数据库自动 生成的主键值
- Windows Runtime 基础
- Partition List 链表划分区间@LeetCode