Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 735285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:28:17+00:00 2026-05-14T07:28:17+00:00

What is a good step by step explanation on how to use the Boost

  • 0

What is a good step by step explanation on how to use the Boost library in an empty project in Visual Studio?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:28:18+00:00Added an answer on May 14, 2026 at 7:28 am

    While Nate’s answer is pretty good already, I’m going to expand on it more specifically for Visual Studio 2010 as requested, and include information on compiling in the various optional components which requires external libraries.

    If you are using headers only libraries, then all you need to do is to unarchive the boost download and set up the environment variables. The instruction below set the environment variables for Visual Studio only, and not across the system as a whole. Note you only have to do it once.

    1. Unarchive the latest version of boost (1.47.0 as of writing) into a directory of your choice (e.g. C:\boost_1_47_0).
    2. Create a new empty project in Visual Studio.
    3. Open the Property Manager and expand one of the configuration for the platform of your choice.
    4. Select & right click Microsoft.Cpp.<Platform>.user, and select Properties to open the Property Page for edit.
    5. Select VC++ Directories on the left.
    6. Edit the Include Directories section to include the path to your boost source files.
    7. Repeat steps 3 – 6 for different platform of your choice if needed.

    If you want to use the part of boost that require building, but none of the features that requires external dependencies, then building it is fairly simple.

    1. Unarchive the latest version of boost (1.47.0 as of writing) into a directory of your choice (e.g. C:\boost_1_47_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 b2.exe (previously named bjam).
    4. Run b2:

      • Win32: b2 --toolset=msvc-10.0 --build-type=complete stage ;
      • x64: b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage

    Go for a walk / watch a movie or 2 / ….

    1. Go through steps 2 – 6 from the set of instruction above to set the environment variables.
    2. 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_47_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).
    3. Repeat steps 2 – 6 for different platform of your choice if needed.

    If you want the optional components, then you have more work to do. These are:

    • Boost.IOStreams Bzip2 filters
    • Boost.IOStreams Zlib filters
    • Boost.MPI
    • Boost.Python
    • Boost.Regex ICU support

    Boost.IOStreams Bzip2 filters:

    1. Unarchive the latest version of bzip2 library (1.0.6 as of writing) source files into a directory of your choice (e.g. C:\bzip2-1.0.6).
    2. Follow the second set of instructions above to build boost, but add in the option -sBZIP2_SOURCE="C:\bzip2-1.0.6" when running b2 in step 5.

    Boost.IOStreams Zlib filters

    1. Unarchive the latest version of zlib library (1.2.5 as of writing) source files into a directory of your choice (e.g. C:\zlib-1.2.5).
    2. Follow the second set of instructions above to build boost, but add in the option -sZLIB_SOURCE="C:\zlib-1.2.5" when running b2 in step 5.

    Boost.MPI

    1. Install a MPI distribution such as Microsoft Compute Cluster Pack.
    2. Follow steps 1 – 3 from the second set of instructions above to build boost.
    3. Edit the file project-config.jam in the directory <BOOST_PATH> that resulted from running bootstrap. Add in a line that read using mpi ; (note the space before the ‘;’).
    4. Follow the rest of the steps from the second set of instructions above to build boost. If auto-detection of the MPI installation fail, then you’ll need to look for and modify the appropriate build file to look for MPI in the right place.

    Boost.Python

    1. Install a Python distribution such as ActiveState’s ActivePython. Make sure the Python installation is in your PATH.
    2. To completely built the 32-bits version of the library requires 32-bits Python, and similarly for the 64-bits version. If you have multiple versions installed for such reason, you’ll need to tell b2 where to find specific version and when to use which one. One way to do that would be to edit the file project-config.jam in the directory <BOOST_PATH> that resulted from running bootstrap. Add in the following two lines adjusting as appropriate for your Python installation paths & versions (note the space before the ‘;’).

      using python : 2.6 : C:\\Python\\Python26\\python ;

      using python : 2.6 : C:\\Python\\Python26-x64\\python : : : <address-model>64 ;

      Do note that such explicit Python specification currently cause MPI build to fail. So you’ll need to do some separate building with and without specification to build everything if you’re building MPI as well.

    3. Follow the second set of instructions above to build boost.

    Boost.Regex ICU support

    1. Unarchive the latest version of ICU4C library (4.8 as of writing) source file into a directory of your choice (e.g. C:\icu4c-4_8).
    2. Open the Visual Studio Solution in <ICU_PATH>\source\allinone.
    3. Build All for both debug & release configuration for the platform of your choice. There can be a problem building recent releases of ICU4C with Visual Studio 2010 when the output for both debug & release build are in the same directory (which is the default behaviour). A possible workaround is to do a Build All (of debug build say) and then do a Rebuild all in the 2nd configuration (e.g. release build).
    4. If building for x64, you’ll need to be running x64 OS as there’s post build steps that involves running some of the 64-bits application that it’s building.
    5. Optionally remove the source directory when you’re done.
    6. Follow the second set of instructions above to build boost, but add in the option -sICU_PATH="C:\icu4c-4_8" when running b2 in step 5.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any good tutorial with source that will demonstrate how to develop neural network (step
Are there any good step-by-step tutorials for enabling printing from within an iOS 5
Thanks to Darin Dimitrov's suggestion I got a big step further in understanding good
Can anybody provide a good step by step example on how to save images
Searched for a stable module that is good for a multi-step registration form so
Good Day I want to start a opengl project, mainly to follow the Nehe
I'm looking for a good library that will integrate stiff ODEs in Python. The
good morning, I have created a new content type - petition, a last step
Good morning, I am about to start writing an Excel add-in for Excel 2002.
Good morgning, I would like to be able to analyze text where I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.