boost 編譯,windows平台

來源:互聯網
上載者:User

標籤:教程   mingw   order   下載   利用   注意   pre   lib   com   

  1. 下載Boost及產生bjam.exe檔案

    到Google網站搜尋下載boost_1.52版本庫,下載完成後,解壓到X:下,這個地址自己隨便定義。在解壓的檔案中搜尋build.bat檔案,把它所在的目錄記下,進入Dos環境下利用CD命令進入build.bat檔案目錄下,輸入命令:“build mingw”,會在本目錄下產生bin.ntx86\jam.exe和b2.exe檔案,只要將bjam.exe拷貝到源檔案的根目錄下(如所示)。

     

  2. 2

    編譯及安裝boost庫

    進入Dos環境,利用CD命令進入一中解壓的boost檔案根目錄,輸入bjam --toolset=gcc --prefix=C:\boost install進行編譯,此命令會把編譯後的boost檔案安裝到C:\boost下

    注意:命令列中前後不可以有空格,檔案夾名字隨便取,但是一個檔案夾名字只能是一個單詞,不能是兩個或者兩個以上中間用空格隔開的單詞,否則編譯失敗。

     

  3. 3

    CodeBlocks配置boost庫

    Settings->Compiler and debugger settings->Linkersettings -><%boost安裝目錄%>/lib/*.lib

    Settings->Compiler and debugger settings->Searchdirectories -> Compiler -><%boost安裝目錄%>/include/boost-1_39

    Settings->Compiler and debugger settings->Searchdirectories -> Linker -><%boost安裝目錄%>/lib

boost 編譯,windows平台

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.