Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>While the <a href="http://www.boost.org/doc/libs/1_51_0/more/getting_started/windows.html" rel="nofollow noreferrer">instructions</a> on the Boost web site are helpful, here is a condensed version that also builds x64 libraries.</p> <ul> <li>You only need to do this if you are using one of the libraries mentioned in <a href="http://www.boost.org/doc/libs/1_51_0/more/getting_started/windows.html#header-only-libraries" rel="nofollow noreferrer">section 3</a> of the instructions page. (E.g., to use Boost.Filesystem requires compilation.) If you are not using any of those, just unzip and go.</li> </ul> <h3>Build the 32-bit libraries</h3> <p>This installs the Boost header files under <code>C:\Boost\include\boost-(version)</code>, and the 32-bit libraries under <code>C:\Boost\lib\i386</code>. Note that the default location for the libraries is <code>C:\Boost\lib</code> but you’ll want to put them under an <code>i386</code> directory if you plan to build for multiple architectures.</p> <ol> <li>Unzip Boost into a new directory.</li> <li>Start a 32-bit MSVC command prompt and change to the directory where Boost was unzipped.</li> <li>Run: <code>bootstrap</code></li> <li><p>Run: <code>b2 toolset=msvc-12.0 --build-type=complete --libdir=C:\Boost\lib\i386 install</code></p> <ul> <li>For Visual Studio 2012, use <code>toolset=msvc-11.0</code></li> <li>For Visual Studio 2010, use <code>toolset=msvc-10.0</code></li> <li>For Visual Studio 2017, use <code>toolset=msvc-14.1</code></li> </ul></li> <li><p>Add <code>C:\Boost\include\boost-(version)</code> to your include path.</p></li> <li>Add <code>C:\Boost\lib\i386</code> to your libs path.</li> </ol> <h3>Build the 64-bit libraries</h3> <p>This installs the Boost header files under <code>C:\Boost\include\boost-(version)</code>, and the 64-bit libraries under <code>C:\Boost\lib\x64</code>. Note that the default location for the libraries is <code>C:\Boost\lib</code> but you’ll want to put them under an <code>x64</code> directory if you plan to build for multiple architectures.</p> <ol> <li>Unzip Boost into a new directory.</li> <li>Start a 64-bit MSVC command prompt and change to the directory where Boost was unzipped.</li> <li>Run: <code>bootstrap</code></li> <li>Run: <code>b2 toolset=msvc-12.0 --build-type=complete --libdir=C:\Boost\lib\x64 architecture=x86 address-model=64 install</code> <ul> <li>For Visual Studio 2012, use <code>toolset=msvc-11.0</code></li> <li>For Visual Studio 2010, use <code>toolset=msvc-10.0</code></li> </ul></li> <li>Add <code>C:\Boost\include\boost-(version)</code> to your include path.</li> <li>Add <code>C:\Boost\lib\x64</code> to your libs path.</li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload