1.下載包ios
目錄結構:bootstrap
切換到上面的目錄,而後運行測試
bootstrap.bat
執行完畢後會生成兩個exe文件spa
繼續執行操作系統
bjam.exe
結束後,目錄以下blog
2.設置路徑編譯器
測試io
#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;
system("pause");
return 0;
}stream
輸出