C++ Boost在VS2015中的使用

 1.下载二进制文件包

目录结构:

 2.设置路径

测试

#include "stdafx.h"
#include <boost\version.hpp>
#include <boost\config.hpp>
#include <iostream>
using namespace std;

int main()
{
    cout << "boost 版本:" << BOOST_VERSION << endl;
    cout << "boost lib 版本:" << BOOST_LIB_VERSION << endl;
    cout << "操作系统:" << BOOST_PLATFORM << endl;
    cout << "编译器:" << BOOST_COMPILER << endl;
    cout << "标准库:" << BOOST_STDLIB << endl;
}

输出

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/10205425.html