Posted on 2011-03-23 13:42
MiweiDev 阅读(954)
评论(0) 编辑 收藏 引用
http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010
- 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
).
- Start the Visual Studio Command Prompt for the platform of your choice and navigate to where boost is.
- Run:
bootstrap.bat
to build bjam.
- Run bjam: (Win32)
bjam --toolset=msvc-9.0 --build-type=complete stage
- Go through steps 2 - 6 from the set of instruction above to set the environment variables.
- 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
).
- Repeat steps 2 - 6 for different platform of your choice if needed.