|
@@ -72,7 +72,7 @@ least install the Static Multithreaded variants of the <a class="reference exter
|
|
|
binaries when given the option.</p>
|
|
binaries when given the option.</p>
|
|
|
<p>If you're using an earlier version of Visual Studio or some other
|
|
<p>If you're using an earlier version of Visual Studio or some other
|
|
|
compiler, or if you prefer to build everything yourself, you can
|
|
compiler, or if you prefer to build everything yourself, you can
|
|
|
-download <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041"><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt><tt class="docutils literal"><span class="pre">.7z</span></tt></a> or <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041"><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt><tt class="docutils literal"><span class="pre">.zip</span></tt></a> and unpack it to install a complete Boost
|
|
|
|
|
|
|
+download <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041"><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt><tt class="docutils literal"><span class="pre">.7z</span></tt></a> or <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041"><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt><tt class="docutils literal"><span class="pre">.zip</span></tt></a> and unpack it to install a complete Boost
|
|
|
distribution.<a class="footnote-reference" href="#zip" id="id2"><sup>1</sup></a></p>
|
|
distribution.<a class="footnote-reference" href="#zip" id="id2"><sup>1</sup></a></p>
|
|
|
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
|
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
|
|
<!-- Software License, Version 1.0. (See accompanying -->
|
|
<!-- Software License, Version 1.0. (See accompanying -->
|
|
@@ -82,7 +82,7 @@ distribution.<a class="footnote-reference" href="#zip" id="id2"><sup>1</sup></a>
|
|
|
<h1><a class="toc-backref" href="#id27">2 The Boost Distribution</a></h1>
|
|
<h1><a class="toc-backref" href="#id27">2 The Boost Distribution</a></h1>
|
|
|
<p>This is a sketch of the resulting directory structure:</p>
|
|
<p>This is a sketch of the resulting directory structure:</p>
|
|
|
<pre class="literal-block">
|
|
<pre class="literal-block">
|
|
|
-<strong>boost_1_38_0</strong><strong>\</strong> .................<em>The “boost root directory”</em>
|
|
|
|
|
|
|
+<strong>boost_1_39_0</strong><strong>\</strong> .................<em>The “boost root directory”</em>
|
|
|
<strong>index.htm</strong> .........<em>A copy of www.boost.org starts here</em>
|
|
<strong>index.htm</strong> .........<em>A copy of www.boost.org starts here</em>
|
|
|
<strong>boost</strong><strong>\</strong> .........................<em>All Boost Header files</em>
|
|
<strong>boost</strong><strong>\</strong> .........................<em>All Boost Header files</em>
|
|
|
<strong>lib</strong><strong>\</strong> .....................<em>precompiled library binaries</em>
|
|
<strong>lib</strong><strong>\</strong> .....................<em>precompiled library binaries</em>
|
|
@@ -127,7 +127,7 @@ anything you can use in these directories.</p>
|
|
|
</div>
|
|
</div>
|
|
|
<p>It's important to note the following:</p>
|
|
<p>It's important to note the following:</p>
|
|
|
<ol class="arabic" id="boost-root-directory">
|
|
<ol class="arabic" id="boost-root-directory">
|
|
|
-<li><p class="first">The path to the <strong>boost root directory</strong> (often <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt>) is
|
|
|
|
|
|
|
+<li><p class="first">The path to the <strong>boost root directory</strong> (often <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt>) is
|
|
|
sometimes referred to as <tt class="docutils literal"><span class="pre">$BOOST_ROOT</span></tt> in documentation and
|
|
sometimes referred to as <tt class="docutils literal"><span class="pre">$BOOST_ROOT</span></tt> in documentation and
|
|
|
mailing lists .</p>
|
|
mailing lists .</p>
|
|
|
</li>
|
|
</li>
|
|
@@ -251,7 +251,7 @@ cd <em>path</em>\<em>to</em>\<em>some</em>\<em>directory</em>
|
|
|
</pre>
|
|
</pre>
|
|
|
<p>followed by Return. For example,</p>
|
|
<p>followed by Return. For example,</p>
|
|
|
<pre class="literal-block">
|
|
<pre class="literal-block">
|
|
|
-cd <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt>
|
|
|
|
|
|
|
+cd <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt>
|
|
|
</pre>
|
|
</pre>
|
|
|
<p class="last">Long commands can be continued across several lines by typing a
|
|
<p class="last">Long commands can be continued across several lines by typing a
|
|
|
caret (<tt class="docutils literal"><span class="pre">^</span></tt>) at the end of all but the last line. Some examples
|
|
caret (<tt class="docutils literal"><span class="pre">^</span></tt>) at the end of all but the last line. Some examples
|
|
@@ -276,7 +276,7 @@ select <em>Properties</em> from the resulting pop-up menu</p>
|
|
|
<li><p class="first">In <em>Configuration Properties</em> > <em>C/C++</em> > <em>General</em> > <em>Additional Include
|
|
<li><p class="first">In <em>Configuration Properties</em> > <em>C/C++</em> > <em>General</em> > <em>Additional Include
|
|
|
Directories</em>, enter the path to the Boost root directory, for example</p>
|
|
Directories</em>, enter the path to the Boost root directory, for example</p>
|
|
|
<blockquote>
|
|
<blockquote>
|
|
|
-<p><tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt></p>
|
|
|
|
|
|
|
+<p><tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt></p>
|
|
|
</blockquote>
|
|
</blockquote>
|
|
|
</li>
|
|
</li>
|
|
|
<li><p class="first">In <em>Configuration Properties</em> > <em>C/C++</em> > <em>Precompiled Headers</em>, change
|
|
<li><p class="first">In <em>Configuration Properties</em> > <em>C/C++</em> > <em>Precompiled Headers</em>, change
|
|
@@ -314,7 +314,7 @@ Visual Studio compiler. In that window, set the <a class="reference internal" h
|
|
|
directory</a> to a suitable location for creating some temporary
|
|
directory</a> to a suitable location for creating some temporary
|
|
|
files and type the following command followed by the Return key:</p>
|
|
files and type the following command followed by the Return key:</p>
|
|
|
<pre class="literal-block">
|
|
<pre class="literal-block">
|
|
|
-cl /EHsc /I <em>path\to\</em><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt> <em>path</em>\<em>to</em>\example.cpp
|
|
|
|
|
|
|
+cl /EHsc /I <em>path\to\</em><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt> <em>path</em>\<em>to</em>\example.cpp
|
|
|
</pre>
|
|
</pre>
|
|
|
<p>To test the result, type:</p>
|
|
<p>To test the result, type:</p>
|
|
|
<pre class="literal-block">
|
|
<pre class="literal-block">
|
|
@@ -345,7 +345,7 @@ you'll need to acquire library binaries.</p>
|
|
|
<h2><a class="toc-backref" href="#id34">5.1 Install Visual Studio Binaries</a></h2>
|
|
<h2><a class="toc-backref" href="#id34">5.1 Install Visual Studio Binaries</a></h2>
|
|
|
<p>The installers supplied by BoostPro Computing will download and
|
|
<p>The installers supplied by BoostPro Computing will download and
|
|
|
install pre-compiled binaries into the <tt class="docutils literal"><span class="pre">lib\</span></tt> subdirectory of the
|
|
install pre-compiled binaries into the <tt class="docutils literal"><span class="pre">lib\</span></tt> subdirectory of the
|
|
|
-boost root, typically <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt><tt class="docutils literal"><span class="pre">\lib\</span></tt>. If you installed
|
|
|
|
|
|
|
+boost root, typically <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt><tt class="docutils literal"><span class="pre">\lib\</span></tt>. If you installed
|
|
|
all variants of the <a class="reference external" href="../../libs/regex/index.html">Boost.Regex</a> binary, you're done with this
|
|
all variants of the <a class="reference external" href="../../libs/regex/index.html">Boost.Regex</a> binary, you're done with this
|
|
|
step. Otherwise, please run the installer again and install them
|
|
step. Otherwise, please run the installer again and install them
|
|
|
now.</p>
|
|
now.</p>
|
|
@@ -497,8 +497,8 @@ bjam <strong>--build-dir=</strong><a class="reference internal" href="#id12"><em
|
|
|
</pre>
|
|
</pre>
|
|
|
<p>For example, your session might look like this:<a class="footnote-reference" href="#continuation" id="id13"><sup>4</sup></a></p>
|
|
<p>For example, your session might look like this:<a class="footnote-reference" href="#continuation" id="id13"><sup>4</sup></a></p>
|
|
|
<pre class="literal-block">
|
|
<pre class="literal-block">
|
|
|
-C:\WINDOWS> cd <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt>
|
|
|
|
|
-<tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt>> bjam <strong>^</strong>
|
|
|
|
|
|
|
+C:\WINDOWS> cd <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt>
|
|
|
|
|
+<tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt>> bjam <strong>^</strong>
|
|
|
More? <strong>--build-dir=</strong>"C:\Documents and Settings\dave\build-boost" <strong>^</strong>
|
|
More? <strong>--build-dir=</strong>"C:\Documents and Settings\dave\build-boost" <strong>^</strong>
|
|
|
More? <strong>--build-type=complete</strong> <strong>msvc</strong> stage
|
|
More? <strong>--build-type=complete</strong> <strong>msvc</strong> stage
|
|
|
</pre>
|
|
</pre>
|
|
@@ -637,7 +637,7 @@ earlier:</p>
|
|
|
select <em>Properties</em> from the resulting pop-up menu</li>
|
|
select <em>Properties</em> from the resulting pop-up menu</li>
|
|
|
<li>In <em>Configuration Properties</em> > <em>Linker</em> > <em>Additional Library
|
|
<li>In <em>Configuration Properties</em> > <em>Linker</em> > <em>Additional Library
|
|
|
Directories</em>, enter the path to the Boost binaries,
|
|
Directories</em>, enter the path to the Boost binaries,
|
|
|
-e.g. <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt><tt class="docutils literal"><span class="pre">\lib\</span></tt>.</li>
|
|
|
|
|
|
|
+e.g. <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt><tt class="docutils literal"><span class="pre">\lib\</span></tt>.</li>
|
|
|
<li>From the <em>Build</em> menu, select <em>Build Solution</em>.</li>
|
|
<li>From the <em>Build</em> menu, select <em>Build Solution</em>.</li>
|
|
|
</ol>
|
|
</ol>
|
|
|
<p><a class="reference internal" href="#test-your-program"><em>skip to the next step</em></a></p>
|
|
<p><a class="reference internal" href="#test-your-program"><em>skip to the next step</em></a></p>
|
|
@@ -647,10 +647,10 @@ e.g. <tt class="docutils literal"><span class="pre">C:\Program</span> <span clas
|
|
|
<p>For example, we can compile and link the above program from the
|
|
<p>For example, we can compile and link the above program from the
|
|
|
Visual C++ command-line by simply adding the <strong>bold</strong> text below to
|
|
Visual C++ command-line by simply adding the <strong>bold</strong> text below to
|
|
|
the command line we used earlier, assuming your Boost binaries are
|
|
the command line we used earlier, assuming your Boost binaries are
|
|
|
-in <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt><tt class="docutils literal"><span class="pre">\lib</span></tt>:</p>
|
|
|
|
|
|
|
+in <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt><tt class="docutils literal"><span class="pre">\lib</span></tt>:</p>
|
|
|
<pre class="literal-block">
|
|
<pre class="literal-block">
|
|
|
-cl /EHsc /I <em>path\to\</em><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt> example.cpp <strong>^</strong>
|
|
|
|
|
- <strong>/link /LIBPATH:</strong> <strong>C:\Program Files\boost\</strong><strong>boost_1_38_0</strong><strong>\lib</strong>
|
|
|
|
|
|
|
+cl /EHsc /I <em>path\to\</em><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt> example.cpp <strong>^</strong>
|
|
|
|
|
+ <strong>/link /LIBPATH:</strong> <strong>C:\Program Files\boost\</strong><strong>boost_1_39_0</strong><strong>\lib</strong>
|
|
|
</pre>
|
|
</pre>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="section" id="library-naming">
|
|
<div class="section" id="library-naming">
|
|
@@ -804,7 +804,7 @@ mailing list</a>.</p>
|
|
|
<colgroup><col class="label" /><col /></colgroup>
|
|
<colgroup><col class="label" /><col /></colgroup>
|
|
|
<tbody valign="top">
|
|
<tbody valign="top">
|
|
|
<tr><td class="label"><a class="fn-backref" href="#id2">[1]</a></td><td>We recommend
|
|
<tr><td class="label"><a class="fn-backref" href="#id2">[1]</a></td><td>We recommend
|
|
|
-downloading <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041"><tt class="docutils literal"><span class="pre">boost_1_38_0</span></tt><tt class="docutils literal"><span class="pre">.7z</span></tt></a> and using <a class="reference external" href="http://www.7-zip.org">7-Zip</a> to decompress
|
|
|
|
|
|
|
+downloading <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041"><tt class="docutils literal"><span class="pre">boost_1_39_0</span></tt><tt class="docutils literal"><span class="pre">.7z</span></tt></a> and using <a class="reference external" href="http://www.7-zip.org">7-Zip</a> to decompress
|
|
|
it. We no longer recommend .zip files for Boost because they are twice
|
|
it. We no longer recommend .zip files for Boost because they are twice
|
|
|
as large as the equivalent .7z files. We don't recommend using Windows'
|
|
as large as the equivalent .7z files. We don't recommend using Windows'
|
|
|
built-in decompression as it can be painfully slow for large archives.</td></tr>
|
|
built-in decompression as it can be painfully slow for large archives.</td></tr>
|