Setup boost and use with Visual Studio 2010 Express

I know that similar questions you can find in web and, particularly in stackoverflow but I still need to write this question because i could no find any page where there is a step by step tutorial how to setup boost library and integrate it with visual studio 2010 express. Even here: How to use Boost in Visual Studio 2010 there are steps (eg 3, 4) that I can't find the menus or so...

So please help me to be able to use boost with visual studio 2010 express on Win7.


I meet some linking issue when I install boost with installer from "BoostPro Computing". And I solve it by compiling boost lib from source code. Here is the steps:

  • download boost from http://www.boost.org/users/history/version_1_52_0.html
  • unzip it
  • enter Visual Studio 2010 Express Command Prompt
  • cd to the unzipped boost dir
  • bootstrap.bat
  • .b2
  • Done.

    Here is my environment:

  • Win7 64bit
  • Visual Studio 2010 Express
  • boost 1_52_0
  • PS At the end of Boost build mentions the include directory and lib directory that should be added to corresponding paths so that Visual Studio could find them.


    For building:

  • Download Boost from here: http://www.boost.org/users/download/ and extract files
  • Double click on build.bat file
  • Press Win+R, type cmd and press enter. The cmd.exe will be invoked.
  • In cmd.exe type "cd the_directory_name_where_you_run_build.bat" and press enter
  • Then type "bjam --prefix=C:Boost install"
  • See here the item 1.3 (Installation) for building and building details: http://en.highscore.de/cpp/boost/ Also this a very good Boost tutorial/book with lots of examples.

    Then the rest is to set include directories and static link directories in MVS and that all. In order to do that in Solution Explorer right click on the solution name you want to compile, and go to Properties->Configuration Properties->VC++ Directories and for Include Directories and Library Directories add appropriate paths to header (.hpp) and static library (.lib) files. (Search them in C:Boost!)


    The link you found is a step-by-step guide..

    If you can't do something like find the property manager, then I suggest you look at the help which will show you where it is..

    For that particular case, the Property Manager can be found in the View menu, under 'Other Windows'

    链接地址: http://www.djcxy.com/p/44184.html

    上一篇: 通过Visual Studio 2010定位.NET Framework 4.5

    下一篇: 设置提升并使用Visual Studio 2010 Express