文章目录
Boost库日常使用
![boost1.55配置方法] (https://img.vivatakethat.com/boost-1.55_vs2015.png “boost1.55配置方法”)
1.59-vs2015配置方案
验证boost环境
1 2 3 4 5 6 7 8 9 10 11
| #include<boost/version.hpp> #include<boost/config.hpp> #include<iostream> int main(void) { std::cout<<BOOST_VERSION<<std::endl; std::cout<<BOOST_LIB_VERSION<<std::endl; std::cout<<BOOST_PLATFORM<<std::endl; std::cout<<BOOST_COMPILER<<std::endl; std::cout<<BOOST_STDLIB<<std::endl; }
|
编译:
1
| # g++ -o a.out checkout.cpp
|
Output
1 2 3 4 5
| 105900 1_59 linux GNU C++ version 5.3.1 20160406 (Red Hat 5.3.1-6) GNU libstdc++ version 20160406
|
105900
boost数字版本号
1_59
boost字符串形式版本号
linux
操作系统
GNU C++ version 5.3.1 20160406 (Red Hat 5.3.1-6)
编译器
GNU libstdc++ version 20160406
标准库