VS2005下使用boost库环境的搭建
来源:互联网 发布:淘宝买av种子要搜什么 编辑:程序博客网 时间:2024/05/09 01:14
1、 到http://www.boost.org/下载了一份最新的boost库:boost_1_48_0
2、 解压到d盘根目录下:d:/boost_1_48_0
3、开始->所有程序-> Microsoft Visual studio 2005->Visual studio Tool->Visual studio 2005命令
4、进入boost的下载路径 d:/boost_1_48_0>
5、输入bootstrap.bat 生成bjam.exe
6、执行bjam --toolset=msvc-8.0 --build-type=complete,对boost库进行完全编译
7 、几十分钟后,编译完毕。
8、配置VS2008环境
1)在菜单栏的“工具”——“选项”——“项目和解决方案”——“VC++目录”,“平台”选择“Win32”。
2)“显示以下内容的目录”选择“库文件”,点击“新建”按钮,文件夹选择“d:\boost_1_48_0\stage\lib”。
3)“显示以下内容的目录”选择“包含文件”,点击“新建”按钮,文件夹选择“d\boost_1_48_0”。
下面为测试程序:
#include "stdafx.h"#include <boost/lexical_cast.hpp> #include <iostream>using namespace std;int _tmain(int argc, _TCHAR* argv[]){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; }
- VS2005下使用boost库环境的搭建
- VS2005 下使用BOOST
- boost在VS2005下的使用
- VS2013下boost环境的搭建
- VS2005 使用Boost库的编译步骤
- VC2005使用boost环境的搭建
- vs2005下安装boost::regex 及简单的使用(转)
- VS2005下编译boost库
- VS2005下编译boost库
- ultrawebgrid在VS2005环境下的使用
- Mac下Boost环境搭建
- mingw环境下boost库的编译和使用
- mingw环境下boost库的编译和使用
- VS2005使用boost库教程
- vs2005下 使用boost::regex 和 filesystem
- [wxWidgets]VS2005下wxWidgets-2.8.x环境的搭建
- [wxWidgets]VS2005下wxWidgets-2.8.x环境的搭建
- VS2005下wxWidgets-2.8.x环境的搭建
- 所有从非官方网站下载的putty和WinSCP都有后门(附清理方式)
- java连接数据库公用类
- EXTJS4.0 window 用法笔记~~
- oracle索引(函数索引,以时间区分每天)
- 如何判断MAX232接口芯片的好坏
- VS2005下使用boost库环境的搭建
- U盘常用文件系统比较
- SQL Server 2012 最新技术 PowerView 让你的业务会说话 [上篇]
- 使用Windows Live Writer寫CSDN Blog
- Java加密技术(五)
- JS控制键盘输入
- TestExcel
- string对象的比较
- 用Pcomm Pro开发串行通信程序