12月7日,BOOST库安装及配置

历经千辛万苦,安装完成boost,编写了hello boost
#include<iostream>
#include<boost/version.hpp>
#include<boost/config.hpp>
using namespace std;
int main()
{
    cout<<BOOST_VERSION<<endl;
    cout<<BOOST_LIB_VERSION<<endl;
    cout<<BOOST_PLATFORM<<endl;
    cout<<BOOST_COMPILER<<endl;
    cout<<BOOST_STDLIB<<endl;
}

以上程序输出为:
105900
1_59
linux
GNU C++ version 5.1.1 20150618 (Red Hat 5.1.1-4)
GNU libstdc++ version 20150618

由于网站维护,不能上传图片。只能这样输出啦。

posted on 2015-12-07 17:25    阅读(135)  评论(0编辑  收藏  举报

导航