2011年9月27日 星期二

build boost 1.47.0 in 64 bits with vc 2008


     


  1. 下載boost 1.47[1]

  2.  解壓縮檔案 ex.(D:\boost_1_47_0)

  3.  開啟VC command line(開始->所有程式->Microsoft Visual Studio 2008->Visual Studio Tools->Visual Studio 2008 Command Prompt)

  4. 在command line中打入指令,切換到剛解壓縮的目錄中 ex.(D:\boost_1_47_0)

  5. 輸入 bootstrap.bat (ex. D:\boost_1_47_0>bootstrap.bat)

  6. 輸入 bjam install --prefix=D:\boost --toolset=msvc-9.0 address-model=64 --build-type=complete (D:\boost是要放置build後的檔案,可自行更換)

  7. 編譯完畢後,打開VC2008->Tool->options->Projects and Solutions->VC++ Directories -> 將show directories for 切換至 Include file -> 新建include路徑 ex.(D:\boost\include\boost-1_47)

  8. 將show directories for 切換至 library file -> 新建lib路徑 ex.(D:\boost\lib)

  9. 完成!


 

沒有留言:

張貼留言