Skip to content

Instantly share code, notes, and snippets.

@madhurjain
Last active May 29, 2018 07:47
Show Gist options
  • Save madhurjain/ce7cceab88658a6c8ed9379e10967b40 to your computer and use it in GitHub Desktop.
Save madhurjain/ce7cceab88658a6c8ed9379e10967b40 to your computer and use it in GitHub Desktop.
Building Boost Library using Visual Studio 2017
  1. Download and Extract Boost
  2. Run bootstrap.bat
  3. Open generated project-config.jam and add path to MSVC 2017 like below
import option ; 
 
using msvc : 14.0 : "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\cl.exe"; 
 
option.set keep-going : false ; 
  1. Open Developer Command Prompt for VS2017, Go to boost directory and run b2 toolset=msvc-14.0 address-model=32
@jonpchin
Copy link

For 2017 its:
14.1 not 14.0

@JackDetrick
Copy link

where is bootstrap.bat located ?

@mgpx
Copy link

mgpx commented Feb 18, 2018

where is bootstrap.bat located ?

In the root directory and in the tools\build directory of the boost source

@romanzagorowski
Copy link

jonpchin is correct. I have Visual Studio Community 2017 and for boost/thread to link correctly it requires libboost_thread-vc141-mt-gd-x32-1_66.lib so it is 14.1 not 14.0

@afabri
Copy link

afabri commented May 29, 2018

Note that when you call bootstrap.bat from within the VC2017 command prompt there is no need to modify project-config.jam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment