boost 1_46 vs2008编译

Posted on 2011-03-23 13:42 MiweiDev 阅读(874) 评论(0)  编辑 收藏 引用
http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010


  1. Unarchive the latest version of boost (1.46.0 as of writing) into a directory of your choice (e.g. C:\boost_1_46_0).
  2. Start the Visual Studio Command Prompt for the platform of your choice and navigate to where boost is.
  3. Run: bootstrap.bat to build bjam.
  4. Run bjam: (Win32) bjam --toolset=msvc-9.0 --build-type=complete stage
  5. Go through steps 2 - 6 from the set of instruction above to set the environment variables.
  6. Edit the Library Directories section to include the path to your boost libraries output. (The default for the example and instructions above would be C:\boost_1_46_0\stage\lib. Rename and move the directory first if you want to have x86 & x64 side by side (such as to <BOOST_PATH>\lib\x86 & <BOOST_PATH>\lib\x64).
  7. Repeat steps 2 - 6 for different platform of your choice if needed.


只有注册用户登录后才能发表评论。
【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理