欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
編譯并使用boost庫(win7+boost1.60+vs2013)

下載boost庫

 http://blog.csdn.net/zengraoli/article/details/51322484

2016

從http://www.boost.org上下載到目前最新的boost庫,快速傳送門(mén):boost_1_60_0.zip


得到源代碼之后,使用vs2013的cl.exe編譯




進(jìn)入到源代碼目錄中


建立編譯工具bjam.exe----需要執行bootstrap.bat



指定編譯命令

 

指定msvc版本12.0對應的是vs2013,--stagedir是指定編譯后存放的目錄

  1. bjam stage --toolset=msvc-12.0 --without-graph --without-graph_parallel --stagedir="D:\boost\boost_1_60_0\bin\vc12" link=static runtime-link=shared runtime-link=static threading=multi debug release  

稍微等一會(huì ),庫就編譯好了……


開(kāi)始使用boost

首先需要設定文件包含目錄:

我的boost庫解壓在D盤(pán)下


設定庫目錄:


然后建立我們的第一個(gè)boost項目,代碼如下:

  1. #include "boost/thread.hpp"  
  2. #include "iostream"  
  3. using namespace std;  
  4.   
  5.   
  6. void mythread()  
  7. {  
  8.     cout << " hello,thread! " << endl;  
  9. }  
  10.   
  11.   
  12. int _tmain(int argc, _TCHAR* argv[])  
  13. {  
  14.     boost::function<void()> f(mythread);  
  15.     boost::thread t(f);  
  16.     t.join();  
  17.     cout << " thread is over! " << endl;  
  18.   
  19.   
  20.     return 0;  
  21. }  

這是輸出


本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
window vs編譯并使用Boost庫
Windows下編譯boost程序庫
bjam參數
編譯boost (boost_1_49_0)
windows下boost怎樣安裝與使用說(shuō)明?
boost 1.45.0 的安裝及測試(Visual Studio 2010)
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久