因為某同學實在很懶,所以才會有懶人包...

首先看心情載ICU吧?
不過vc內建的wchar我用了沒什麼大問題就不改回來了。

下載下來後http://www.boost.org/users/download/
先點兩下 bootstrap.bat

然後在cmd下面打

1.一般的boost庫
bjam --toolset=msvc-9.0 --build-type=complete stage
bjam --toolset=msvc-9.0 --build-type=complete install

bjam --toolset=msvc-10.0 --build-type=complete stage
bjam --toolset=msvc-10.0 --build-type=complete install

bjam --toolset=msvc-11.0 --build-type=complete stage
bjam --toolset=msvc-11.0 --build-type=complete install


64位元版本
bjam --toolset=msvc-14.0 --build-type=complete architecture=x86 address-model=64 stage
bjam --toolset=msvc-9.0 --build-type=complete  architecture=ia64 stage
注意,64位元的檔名同32元,所以記得要把編譯的lib換資料夾
        
 2.有ICU支援的boost庫
先去http://site.icu-project.org/載一回來編譯
bjam -sICU_PATH=C:\clibrary\icu --toolset=msvc-14.0 --build-type=complete stage
bjam -sICU_PATH=C:\clibrary\icu --toolset=msvc-14.0 --build-type=complete install
其它的請看說明文件。

這時可以去找人泡茶之類的,我的電腦編了快一小時你的電腦呢?

啊對,記得要去 工具->選項->專案與方案->vc++目錄->INCLUDE
設 XXX\boost_1_44_0
程式庫 LIB設
XXX\boost_1_44_0\stage\lib




 

arrow
arrow
    全站熱搜

    讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()