mirror of
https://github.com/boostorg/more.git
synced 2024-12-26 23:30:29 +08:00
Changed references to --with-* and --without-* to --with-libraries; fixes #3433
[SVN r62624]
This commit is contained in:
parent
9958cf44c3
commit
cb2cc4cd64
@ -18,8 +18,8 @@ In particular, to limit the amount of time spent building, you may
|
|||||||
be interested in:
|
be interested in:
|
||||||
|
|
||||||
* reviewing the list of library names with ``--show-libraries``
|
* reviewing the list of library names with ``--show-libraries``
|
||||||
* limiting which libraries get built with the ``--with-``\
|
* limiting which libraries get built with the ``--with-libraries=``\
|
||||||
*library-name* or ``--without-``\ *library-name* options
|
*library-name-list* option
|
||||||
* choosing a specific build variant by adding ``release`` or
|
* choosing a specific build variant by adding ``release`` or
|
||||||
``debug`` to the command line.
|
``debug`` to the command line.
|
||||||
|
|
||||||
|
@ -40,10 +40,10 @@
|
|||||||
<li><a class="reference internal" href="#prepare-to-use-a-boost-library-binary" id="id25">5 Prepare to Use a Boost Library Binary</a><ul class="auto-toc">
|
<li><a class="reference internal" href="#prepare-to-use-a-boost-library-binary" id="id25">5 Prepare to Use a Boost Library Binary</a><ul class="auto-toc">
|
||||||
<li><a class="reference internal" href="#easy-build-and-install" id="id26">5.1 Easy Build and Install</a></li>
|
<li><a class="reference internal" href="#easy-build-and-install" id="id26">5.1 Easy Build and Install</a></li>
|
||||||
<li><a class="reference internal" href="#or-build-custom-binaries" id="id27">5.2 Or, Build Custom Binaries</a><ul class="auto-toc">
|
<li><a class="reference internal" href="#or-build-custom-binaries" id="id27">5.2 Or, Build Custom Binaries</a><ul class="auto-toc">
|
||||||
<li><a class="reference internal" href="#get-bjam" id="id28">5.2.1 Get <tt class="docutils literal">bjam</tt></a></li>
|
<li><a class="reference internal" href="#get-bjam" id="id28">5.2.1 Get <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
|
||||||
<li><a class="reference internal" href="#identify-your-toolset" id="id29">5.2.2 Identify Your Toolset</a></li>
|
<li><a class="reference internal" href="#identify-your-toolset" id="id29">5.2.2 Identify Your Toolset</a></li>
|
||||||
<li><a class="reference internal" href="#select-a-build-directory" id="id30">5.2.3 Select a Build Directory</a></li>
|
<li><a class="reference internal" href="#select-a-build-directory" id="id30">5.2.3 Select a Build Directory</a></li>
|
||||||
<li><a class="reference internal" href="#invoke-bjam" id="id31">5.2.4 Invoke <tt class="docutils literal">bjam</tt></a></li>
|
<li><a class="reference internal" href="#invoke-bjam" id="id31">5.2.4 Invoke <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a class="reference internal" href="#expected-build-output" id="id32">5.3 Expected Build Output</a></li>
|
<li><a class="reference internal" href="#expected-build-output" id="id32">5.3 Expected Build Output</a></li>
|
||||||
@ -63,12 +63,12 @@
|
|||||||
<p>The most reliable way to get a copy of Boost is to download a
|
<p>The most reliable way to get a copy of Boost is to download a
|
||||||
distribution from <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041">SourceForge</a>:</p>
|
distribution from <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041">SourceForge</a>:</p>
|
||||||
<ol class="arabic">
|
<ol class="arabic">
|
||||||
<li><p class="first">Download <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041"><tt class="docutils literal">boost_1_44_0</tt><tt class="docutils literal">.tar.bz2</tt></a>.</p>
|
<li><p class="first">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_44_0</span></tt><tt class="docutils literal"><span class="pre">.tar.bz2</span></tt></a>.</p>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">In the directory where you want to put the Boost installation,
|
<li><p class="first">In the directory where you want to put the Boost installation,
|
||||||
execute</p>
|
execute</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
tar --bzip2 -xf <em>/path/to/</em><tt class="docutils literal">boost_1_44_0</tt>.tar.bz2
|
tar --bzip2 -xf <em>/path/to/</em><tt class="docutils literal"><span class="pre">boost_1_44_0</span></tt>.tar.bz2
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
@ -112,40 +112,40 @@ from <a class="reference external" href="http://sourceforge.net/project/showfile
|
|||||||
but most libraries follow a few patterns:</p>
|
but most libraries follow a few patterns:</p>
|
||||||
<ul class="pre-wrap last">
|
<ul class="pre-wrap last">
|
||||||
<li><p class="first">Some older libraries and most very small libraries place all
|
<li><p class="first">Some older libraries and most very small libraries place all
|
||||||
public headers directly into <tt class="docutils literal">boost</tt><tt class="docutils literal">/</tt>.</p>
|
public headers directly into <tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">/</span></tt>.</p>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Most libraries' public headers live in a subdirectory of
|
<li><p class="first">Most libraries' public headers live in a subdirectory of
|
||||||
<tt class="docutils literal">boost</tt><tt class="docutils literal">/</tt>, named after the library. For example, you'll find
|
<tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">/</span></tt>, named after the library. For example, you'll find
|
||||||
the Python library's <tt class="docutils literal">def.hpp</tt> header in</p>
|
the Python library's <tt class="docutils literal"><span class="pre">def.hpp</span></tt> header in</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
<tt class="docutils literal">boost</tt><tt class="docutils literal">/</tt><tt class="docutils literal">python</tt><tt class="docutils literal">/</tt><tt class="docutils literal">def.hpp</tt>.
|
<tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">/</span></tt><tt class="docutils literal"><span class="pre">python</span></tt><tt class="docutils literal"><span class="pre">/</span></tt><tt class="docutils literal"><span class="pre">def.hpp</span></tt>.
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Some libraries have an “aggregate header” in <tt class="docutils literal">boost</tt><tt class="docutils literal">/</tt> that
|
<li><p class="first">Some libraries have an “aggregate header” in <tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">/</span></tt> that
|
||||||
<tt class="docutils literal">#include</tt>s all of the library's other headers. For
|
<tt class="docutils literal"><span class="pre">#include</span></tt>s all of the library's other headers. For
|
||||||
example, <a class="reference external" href="../../libs/python/doc/building.html">Boost.Python</a>'s aggregate header is</p>
|
example, <a class="reference external" href="../../libs/python/doc/building.html">Boost.Python</a>'s aggregate header is</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
<tt class="docutils literal">boost</tt><tt class="docutils literal">/</tt><tt class="docutils literal">python.hpp</tt>.
|
<tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">/</span></tt><tt class="docutils literal"><span class="pre">python.hpp</span></tt>.
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Most libraries place private headers in a subdirectory called
|
<li><p class="first">Most libraries place private headers in a subdirectory called
|
||||||
<tt class="docutils literal">detail</tt><tt class="docutils literal">/</tt>, or <tt class="docutils literal">aux_</tt><tt class="docutils literal">/</tt>. Don't expect to find
|
<tt class="docutils literal"><span class="pre">detail</span></tt><tt class="docutils literal"><span class="pre">/</span></tt>, or <tt class="docutils literal"><span class="pre">aux_</span></tt><tt class="docutils literal"><span class="pre">/</span></tt>. Don't expect to find
|
||||||
anything you can use in these directories.</p>
|
anything you can use in these directories.</p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</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">/usr/local/</tt><tt class="docutils literal">boost_1_44_0</tt>) is
|
<li><p class="first">The path to the <strong>boost root directory</strong> (often <tt class="docutils literal"><span class="pre">/usr/local/</span></tt><tt class="docutils literal"><span class="pre">boost_1_44_0</span></tt>) is
|
||||||
sometimes referred to as <tt class="docutils literal">$BOOST_ROOT</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>
|
||||||
<li><p class="first">To compile anything in Boost, you need a directory containing
|
<li><p class="first">To compile anything in Boost, you need a directory containing
|
||||||
the <tt class="docutils literal">boost</tt><tt class="docutils literal">/</tt> subdirectory in your <tt class="docutils literal">#include</tt> path. <tt class="docutils literal"> </tt></p>
|
the <tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">/</span></tt> subdirectory in your <tt class="docutils literal"><span class="pre">#include</span></tt> path. <tt class="docutils literal"> </tt></p>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Since all of Boost's header files have the <tt class="docutils literal">.hpp</tt> extension,
|
<li><p class="first">Since all of Boost's header files have the <tt class="docutils literal"><span class="pre">.hpp</span></tt> extension,
|
||||||
and live in the <tt class="docutils literal">boost</tt><tt class="docutils literal">/</tt> subdirectory of the boost root, your
|
and live in the <tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">/</span></tt> subdirectory of the boost root, your
|
||||||
Boost <tt class="docutils literal">#include</tt> directives will look like:</p>
|
Boost <tt class="docutils literal"><span class="pre">#include</span></tt> directives will look like:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
#include <boost/<em>whatever</em>.hpp>
|
#include <boost/<em>whatever</em>.hpp>
|
||||||
</pre>
|
</pre>
|
||||||
@ -156,9 +156,9 @@ Boost <tt class="docutils literal">#include</tt> directives will look like:</p>
|
|||||||
<p>depending on your preference regarding the use of angle bracket
|
<p>depending on your preference regarding the use of angle bracket
|
||||||
includes. <tt class="docutils literal"> </tt></p>
|
includes. <tt class="docutils literal"> </tt></p>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Don't be distracted by the <tt class="docutils literal">doc</tt><tt class="docutils literal">/</tt> subdirectory; it only
|
<li><p class="first">Don't be distracted by the <tt class="docutils literal"><span class="pre">doc</span></tt><tt class="docutils literal"><span class="pre">/</span></tt> subdirectory; it only
|
||||||
contains a subset of the Boost documentation. Start with
|
contains a subset of the Boost documentation. Start with
|
||||||
<tt class="docutils literal">libs</tt><tt class="docutils literal">/</tt><tt class="docutils literal">index.html</tt> if you're looking for the whole enchilada.</p>
|
<tt class="docutils literal"><span class="pre">libs</span></tt><tt class="docutils literal"><span class="pre">/</span></tt><tt class="docutils literal"><span class="pre">index.html</span></tt> if you're looking for the whole enchilada.</p>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
||||||
@ -194,7 +194,7 @@ before building and installing it)</li>
|
|||||||
<p>A few libraries have optional separately-compiled binaries:</p>
|
<p>A few libraries have optional separately-compiled binaries:</p>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li><a class="reference external" href="../../libs/date_time/index.html">Boost.DateTime</a> has a binary component that is only needed if
|
<li><a class="reference external" href="../../libs/date_time/index.html">Boost.DateTime</a> has a binary component that is only needed if
|
||||||
you're using its <tt class="docutils literal">to_string</tt>/<tt class="docutils literal">from_string</tt> or serialization
|
you're using its <tt class="docutils literal"><span class="pre">to_string</span></tt>/<tt class="docutils literal"><span class="pre">from_string</span></tt> or serialization
|
||||||
features, or if you're targeting Visual C++ 6.x or Borland.</li>
|
features, or if you're targeting Visual C++ 6.x or Borland.</li>
|
||||||
<li><a class="reference external" href="../../libs/graph/index.html">Boost.Graph</a> also has a binary component that is only needed if
|
<li><a class="reference external" href="../../libs/graph/index.html">Boost.Graph</a> also has a binary component that is only needed if
|
||||||
you intend to <a class="reference external" href="../../libs/graph/doc/read_graphviz.html">parse GraphViz files</a>.</li>
|
you intend to <a class="reference external" href="../../libs/graph/doc/read_graphviz.html">parse GraphViz files</a>.</li>
|
||||||
@ -227,11 +227,11 @@ int main()
|
|||||||
in(std::cin), in(), std::cout << (_1 * 3) << " " );
|
in(std::cin), in(), std::cout << (_1 * 3) << " " );
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
<p>Copy the text of this program into a file called <tt class="docutils literal">example.cpp</tt>.</p>
|
<p>Copy the text of this program into a file called <tt class="docutils literal"><span class="pre">example.cpp</span></tt>.</p>
|
||||||
<p>Now, in the directory where you saved <tt class="docutils literal">example.cpp</tt>, issue the
|
<p>Now, in the directory where you saved <tt class="docutils literal"><span class="pre">example.cpp</span></tt>, issue the
|
||||||
following command:</p>
|
following command:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
c++ -I <em>path/to/</em><tt class="docutils literal">boost_1_44_0</tt> example.cpp -o example
|
c++ -I <em>path/to/</em><tt class="docutils literal"><span class="pre">boost_1_44_0</span></tt> example.cpp -o example
|
||||||
</pre>
|
</pre>
|
||||||
<p>To test the result, type:</p>
|
<p>To test the result, type:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
@ -259,29 +259,29 @@ correctly identified the <a class="reference internal" href="#boost-root-directo
|
|||||||
you'll need to acquire library binaries.</p>
|
you'll need to acquire library binaries.</p>
|
||||||
<div class="section" id="easy-build-and-install">
|
<div class="section" id="easy-build-and-install">
|
||||||
<h2><a class="toc-backref" href="#id26">5.1 Easy Build and Install</a></h2>
|
<h2><a class="toc-backref" href="#id26">5.1 Easy Build and Install</a></h2>
|
||||||
<p>Issue the following commands in the shell (don't type <tt class="docutils literal">$</tt>; that
|
<p>Issue the following commands in the shell (don't type <tt class="docutils literal"><span class="pre">$</span></tt>; that
|
||||||
represents the shell's prompt):</p>
|
represents the shell's prompt):</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
<strong>$</strong> cd <em>path/to/</em><tt class="docutils literal">boost_1_44_0</tt>
|
<strong>$</strong> cd <em>path/to/</em><tt class="docutils literal"><span class="pre">boost_1_44_0</span></tt>
|
||||||
<strong>$</strong> ./bootstrap.sh --help
|
<strong>$</strong> ./bootstrap.sh --help
|
||||||
</pre>
|
</pre>
|
||||||
<p>Select your configuration options and invoke <tt class="docutils literal">./bootstrap.sh</tt> again
|
<p>Select your configuration options and invoke <tt class="docutils literal"><span class="pre">./bootstrap.sh</span></tt> again
|
||||||
without the <tt class="docutils literal"><span class="pre">--help</span></tt> option. Unless you have write permission in
|
without the <tt class="docutils literal"><span class="pre">--help</span></tt> option. Unless you have write permission in
|
||||||
your system's <tt class="docutils literal">/usr/local/</tt> directory, you'll probably want to at
|
your system's <tt class="docutils literal"><span class="pre">/usr/local/</span></tt> directory, you'll probably want to at
|
||||||
least use</p>
|
least use</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
<strong>$</strong> ./bootstrap.sh <strong>--prefix=</strong><em>path</em>/<em>to</em>/<em>installation</em>/<em>prefix</em>
|
<strong>$</strong> ./bootstrap.sh <strong>--prefix=</strong><em>path</em>/<em>to</em>/<em>installation</em>/<em>prefix</em>
|
||||||
</pre>
|
</pre>
|
||||||
<p>to install somewhere else. Also, consider using the
|
<p>to install somewhere else. Also, consider using the
|
||||||
<tt class="docutils literal"><span class="pre">--show-libraries</span></tt> and <tt class="docutils literal"><span class="pre">--with-</span></tt><em>library_name</em> options to limit the
|
<tt class="docutils literal"><span class="pre">--show-libraries</span></tt> and <tt class="docutils literal"><span class="pre">--with-libraries=</span></tt><em>library_name_list</em> options to limit the
|
||||||
long wait you'll experience if you build everything. Finally,</p>
|
long wait you'll experience if you build everything. Finally,</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
<strong>$</strong> ./bjam install
|
<strong>$</strong> ./bjam install
|
||||||
</pre>
|
</pre>
|
||||||
<p>will leave Boost binaries in the <tt class="docutils literal">lib/</tt> subdirectory of your
|
<p>will leave Boost binaries in the <tt class="docutils literal"><span class="pre">lib/</span></tt> subdirectory of your
|
||||||
installation prefix. You will also find a copy of the Boost
|
installation prefix. You will also find a copy of the Boost
|
||||||
headers in the <tt class="docutils literal">include/</tt> subdirectory of the installation
|
headers in the <tt class="docutils literal"><span class="pre">include/</span></tt> subdirectory of the installation
|
||||||
prefix, so you can henceforth use that directory as an <tt class="docutils literal">#include</tt>
|
prefix, so you can henceforth use that directory as an <tt class="docutils literal"><span class="pre">#include</span></tt>
|
||||||
path in place of the Boost root directory.</p>
|
path in place of the Boost root directory.</p>
|
||||||
<p><a class="reference internal" href="#link-your-program-to-a-boost-library"><em>skip to the next step</em></a></p>
|
<p><a class="reference internal" href="#link-your-program-to-a-boost-library"><em>skip to the next step</em></a></p>
|
||||||
</div>
|
</div>
|
||||||
@ -302,19 +302,19 @@ separately. See the <a class="reference external" href="https://svn.boost.org/t
|
|||||||
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
||||||
<p><a class="reference external" href="../../tools/build/index.html">Boost.Build</a> is a text-based system for developing, testing, and
|
<p><a class="reference external" href="../../tools/build/index.html">Boost.Build</a> is a text-based system for developing, testing, and
|
||||||
installing software. To use it, you'll need an executable called
|
installing software. To use it, you'll need an executable called
|
||||||
<tt class="docutils literal">bjam</tt>.</p>
|
<tt class="docutils literal"><span class="pre">bjam</span></tt>.</p>
|
||||||
<!-- .. _Boost.Jam documentation: Boost.Jam_ -->
|
<!-- .. _Boost.Jam documentation: Boost.Jam_ -->
|
||||||
<div class="section" id="get-bjam">
|
<div class="section" id="get-bjam">
|
||||||
<h3><a class="toc-backref" href="#id28">5.2.1 Get <tt class="docutils literal">bjam</tt></a></h3>
|
<h3><a class="toc-backref" href="#id28">5.2.1 Get <tt class="docutils literal"><span class="pre">bjam</span></tt></a></h3>
|
||||||
<p><tt class="docutils literal">bjam</tt> is the command-line tool that drives the Boost Build
|
<p><tt class="docutils literal"><span class="pre">bjam</span></tt> is the command-line tool that drives the Boost Build
|
||||||
system. To build Boost binaries, you'll invoke <tt class="docutils literal">bjam</tt> from the
|
system. To build Boost binaries, you'll invoke <tt class="docutils literal"><span class="pre">bjam</span></tt> from the
|
||||||
Boost root.</p>
|
Boost root.</p>
|
||||||
<p>We suggest you <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941">download a pre-built <tt class="docutils literal">bjam</tt> executable</a> for your platform.
|
<p>We suggest you <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941">download a pre-built <tt class="docutils literal"><span class="pre">bjam</span></tt> executable</a> for your platform.
|
||||||
Alternatively, you can build <tt class="docutils literal">bjam</tt> yourself using <a class="reference external" href="../../doc/html/jam/building.html">these
|
Alternatively, you can build <tt class="docutils literal"><span class="pre">bjam</span></tt> yourself using <a class="reference external" href="../../doc/html/jam/building.html">these
|
||||||
instructions</a>.</p>
|
instructions</a>.</p>
|
||||||
<p>Move the <tt class="docutils literal">bjam</tt> executable into a directory in your PATH. You can
|
<p>Move the <tt class="docutils literal"><span class="pre">bjam</span></tt> executable into a directory in your PATH. You can
|
||||||
see the list of directories in your PATH, separated by colons,
|
see the list of directories in your PATH, separated by colons,
|
||||||
by typing “<tt class="docutils literal">echo $PATH</tt>” at the command prompt.</p>
|
by typing “<tt class="docutils literal"><span class="pre">echo</span> <span class="pre">$PATH</span></tt>” at the command prompt.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="identify-your-toolset">
|
<div class="section" id="identify-your-toolset">
|
||||||
<span id="toolset-name"></span><span id="toolset"></span><h3><a class="toc-backref" href="#id29">5.2.2 Identify Your Toolset</a></h3>
|
<span id="toolset-name"></span><span id="toolset"></span><h3><a class="toc-backref" href="#id29">5.2.2 Identify Your Toolset</a></h3>
|
||||||
@ -341,70 +341,70 @@ Name</th>
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr><td><tt class="docutils literal">acc</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">acc</span></tt></td>
|
||||||
<td>Hewlett Packard</td>
|
<td>Hewlett Packard</td>
|
||||||
<td>Only very recent versions are
|
<td>Only very recent versions are
|
||||||
known to work well with Boost</td>
|
known to work well with Boost</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">borland</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">borland</span></tt></td>
|
||||||
<td>Borland</td>
|
<td>Borland</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">como</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">como</span></tt></td>
|
||||||
<td>Comeau Computing</td>
|
<td>Comeau Computing</td>
|
||||||
<td>Using this toolset may
|
<td>Using this toolset may
|
||||||
require <a class="reference external" href="../../tools/build/index.html">configuring</a> another
|
require <a class="reference external" href="../../tools/build/index.html">configuring</a> another
|
||||||
toolset to act as its backend</td>
|
toolset to act as its backend</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">cw</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">cw</span></tt></td>
|
||||||
<td>Metrowerks/Freescale</td>
|
<td>Metrowerks/Freescale</td>
|
||||||
<td>The CodeWarrior compiler. We
|
<td>The CodeWarrior compiler. We
|
||||||
have not tested versions of
|
have not tested versions of
|
||||||
this compiler produced since
|
this compiler produced since
|
||||||
it was sold to Freescale.</td>
|
it was sold to Freescale.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">dmc</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">dmc</span></tt></td>
|
||||||
<td>Digital Mars</td>
|
<td>Digital Mars</td>
|
||||||
<td>As of this Boost release, no
|
<td>As of this Boost release, no
|
||||||
version of dmc is known to
|
version of dmc is known to
|
||||||
handle Boost well.</td>
|
handle Boost well.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">darwin</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">darwin</span></tt></td>
|
||||||
<td>Apple Computer</td>
|
<td>Apple Computer</td>
|
||||||
<td>Apple's version of the GCC
|
<td>Apple's version of the GCC
|
||||||
toolchain with support for
|
toolchain with support for
|
||||||
Darwin and MacOS X features
|
Darwin and MacOS X features
|
||||||
such as frameworks.</td>
|
such as frameworks.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">gcc</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">gcc</span></tt></td>
|
||||||
<td>The Gnu Project</td>
|
<td>The Gnu Project</td>
|
||||||
<td>Includes support for Cygwin
|
<td>Includes support for Cygwin
|
||||||
and MinGW compilers.</td>
|
and MinGW compilers.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">hp_cxx</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">hp_cxx</span></tt></td>
|
||||||
<td>Hewlett Packard</td>
|
<td>Hewlett Packard</td>
|
||||||
<td>Targeted at the Tru64
|
<td>Targeted at the Tru64
|
||||||
operating system.</td>
|
operating system.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">intel</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">intel</span></tt></td>
|
||||||
<td>Intel</td>
|
<td>Intel</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">msvc</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">msvc</span></tt></td>
|
||||||
<td>Microsoft</td>
|
<td>Microsoft</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">qcc</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">qcc</span></tt></td>
|
||||||
<td>QNX Software Systems</td>
|
<td>QNX Software Systems</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">sun</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">sun</span></tt></td>
|
||||||
<td>Sun</td>
|
<td>Sun</td>
|
||||||
<td>Only very recent versions are
|
<td>Only very recent versions are
|
||||||
known to work well with
|
known to work well with
|
||||||
Boost.</td>
|
Boost.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">vacpp</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">vacpp</span></tt></td>
|
||||||
<td>IBM</td>
|
<td>IBM</td>
|
||||||
<td>The VisualAge C++ compiler.</td>
|
<td>The VisualAge C++ compiler.</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -420,13 +420,13 @@ a hyphen, e.g. <tt class="docutils literal"><span class="pre">intel-9.0</span></
|
|||||||
<p><a class="reference external" href="../../tools/build/index.html">Boost.Build</a> will place all intermediate files it generates while
|
<p><a class="reference external" href="../../tools/build/index.html">Boost.Build</a> will place all intermediate files it generates while
|
||||||
building into the <strong>build directory</strong>. If your Boost root
|
building into the <strong>build directory</strong>. If your Boost root
|
||||||
directory is writable, this step isn't strictly necessary: by
|
directory is writable, this step isn't strictly necessary: by
|
||||||
default Boost.Build will create a <tt class="docutils literal">bin.v2/</tt> subdirectory for that
|
default Boost.Build will create a <tt class="docutils literal"><span class="pre">bin.v2/</span></tt> subdirectory for that
|
||||||
purpose in your current working directory.</p>
|
purpose in your current working directory.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="invoke-bjam">
|
<div class="section" id="invoke-bjam">
|
||||||
<h3><a class="toc-backref" href="#id31">5.2.4 Invoke <tt class="docutils literal">bjam</tt></a></h3>
|
<h3><a class="toc-backref" href="#id31">5.2.4 Invoke <tt class="docutils literal"><span class="pre">bjam</span></tt></a></h3>
|
||||||
<p>Change your current directory to the Boost root directory and
|
<p>Change your current directory to the Boost root directory and
|
||||||
invoke <tt class="docutils literal">bjam</tt> as follows:</p>
|
invoke <tt class="docutils literal"><span class="pre">bjam</span></tt> as follows:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
bjam <strong>--build-dir=</strong><a class="reference internal" href="#id11"><em>build-directory</em></a> <strong>toolset=</strong><a class="reference internal" href="#toolset-name"><em>toolset-name</em></a> <tt class="docutils literal"> </tt> stage
|
bjam <strong>--build-dir=</strong><a class="reference internal" href="#id11"><em>build-directory</em></a> <strong>toolset=</strong><a class="reference internal" href="#toolset-name"><em>toolset-name</em></a> <tt class="docutils literal"> </tt> stage
|
||||||
</pre>
|
</pre>
|
||||||
@ -434,23 +434,23 @@ bjam <strong>--build-dir=</strong><a class="reference internal" href="#id11"><em
|
|||||||
please see the <a class="reference external" href="http://www.boost.org/boost-build2/doc/html/bbv2/advanced/invocation.html">Boost.Build documentation</a>.</p>
|
please see the <a class="reference external" href="http://www.boost.org/boost-build2/doc/html/bbv2/advanced/invocation.html">Boost.Build documentation</a>.</p>
|
||||||
<p>For example, your session might look like this:</p>
|
<p>For example, your session might look like this:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
$ cd ~/<tt class="docutils literal">boost_1_44_0</tt>
|
$ cd ~/<tt class="docutils literal"><span class="pre">boost_1_44_0</span></tt>
|
||||||
$ bjam <strong>--build-dir=</strong>/tmp/build-boost <strong>toolset=</strong>gcc stage
|
$ bjam <strong>--build-dir=</strong>/tmp/build-boost <strong>toolset=</strong>gcc stage
|
||||||
</pre>
|
</pre>
|
||||||
<p>That will build static and shared non-debug multi-threaded variants of the libraries. To build all variants, pass the additional option, “<tt class="docutils literal"><span class="pre">--build-type=complete</span></tt>”.</p>
|
<p>That will build static and shared non-debug multi-threaded variants of the libraries. To build all variants, pass the additional option, “<tt class="docutils literal"><span class="pre">--build-type=complete</span></tt>”.</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 -->
|
||||||
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
||||||
<p>Building the special <tt class="docutils literal">stage</tt> target places Boost
|
<p>Building the special <tt class="docutils literal"><span class="pre">stage</span></tt> target places Boost
|
||||||
library binaries in the <tt class="docutils literal">stage</tt><tt class="docutils literal">/</tt><tt class="docutils literal">lib</tt><tt class="docutils literal">/</tt> subdirectory of your <a class="reference internal" href="#build-directory">build
|
library binaries in the <tt class="docutils literal"><span class="pre">stage</span></tt><tt class="docutils literal"><span class="pre">/</span></tt><tt class="docutils literal"><span class="pre">lib</span></tt><tt class="docutils literal"><span class="pre">/</span></tt> subdirectory of your <a class="reference internal" href="#build-directory">build
|
||||||
directory</a>.</p>
|
directory</a>.</p>
|
||||||
<div class="note">
|
<div class="note">
|
||||||
<p class="first admonition-title">Note</p>
|
<p class="first admonition-title">Note</p>
|
||||||
<p class="last"><tt class="docutils literal">bjam</tt> is case-sensitive; it is important that all the
|
<p class="last"><tt class="docutils literal"><span class="pre">bjam</span></tt> is case-sensitive; it is important that all the
|
||||||
parts shown in <strong>bold</strong> type above be entirely lower-case.</p>
|
parts shown in <strong>bold</strong> type above be entirely lower-case.</p>
|
||||||
</div>
|
</div>
|
||||||
<p>For a description of other options you can pass when invoking
|
<p>For a description of other options you can pass when invoking
|
||||||
<tt class="docutils literal">bjam</tt>, type:</p>
|
<tt class="docutils literal"><span class="pre">bjam</span></tt>, type:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
bjam --help
|
bjam --help
|
||||||
</pre>
|
</pre>
|
||||||
@ -458,16 +458,16 @@ bjam --help
|
|||||||
be interested in:</p>
|
be interested in:</p>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li>reviewing the list of library names with <tt class="docutils literal"><span class="pre">--show-libraries</span></tt></li>
|
<li>reviewing the list of library names with <tt class="docutils literal"><span class="pre">--show-libraries</span></tt></li>
|
||||||
<li>limiting which libraries get built with the <tt class="docutils literal"><span class="pre">--with-</span></tt><em>library-name</em> or <tt class="docutils literal"><span class="pre">--without-</span></tt><em>library-name</em> options</li>
|
<li>limiting which libraries get built with the <tt class="docutils literal"><span class="pre">--with-libraries=</span></tt><em>library-name-list</em> option</li>
|
||||||
<li>choosing a specific build variant by adding <tt class="docutils literal">release</tt> or
|
<li>choosing a specific build variant by adding <tt class="docutils literal"><span class="pre">release</span></tt> or
|
||||||
<tt class="docutils literal">debug</tt> to the command line.</li>
|
<tt class="docutils literal"><span class="pre">debug</span></tt> to the command line.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="note">
|
<div class="note">
|
||||||
<p class="first admonition-title">Note</p>
|
<p class="first admonition-title">Note</p>
|
||||||
<p class="last">Boost.Build can produce a great deal of output, which can
|
<p class="last">Boost.Build can produce a great deal of output, which can
|
||||||
make it easy to miss problems. If you want to make sure
|
make it easy to miss problems. If you want to make sure
|
||||||
everything is went well, you might redirect the output into a
|
everything is went well, you might redirect the output into a
|
||||||
file by appending “<tt class="docutils literal">>build.log <span class="pre">2>&1</span></tt>” to your command line.</p>
|
file by appending “<tt class="docutils literal"><span class="pre">>build.log</span> <span class="pre">2>&1</span></tt>” to your command line.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -549,21 +549,21 @@ project.</li>
|
|||||||
<ol class="upperalpha">
|
<ol class="upperalpha">
|
||||||
<li><p class="first">You can specify the full path to each library:</p>
|
<li><p class="first">You can specify the full path to each library:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
$ c++ -I <em>path/to/</em><tt class="docutils literal">boost_1_44_0</tt> example.cpp -o example <strong>\</strong>
|
$ c++ -I <em>path/to/</em><tt class="docutils literal"><span class="pre">boost_1_44_0</span></tt> example.cpp -o example <strong>\</strong>
|
||||||
<strong>~/boost/stage/lib/libboost_regex-gcc34-mt-d-1_36.a</strong>
|
<strong>~/boost/stage/lib/libboost_regex-gcc34-mt-d-1_36.a</strong>
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">You can separately specify a directory to search (with <tt class="docutils literal"><span class="pre">-L</span></tt><em>directory</em>) and a library name to search for (with <tt class="docutils literal"><span class="pre">-l</span></tt><em>library</em>,<a class="footnote-reference" href="#lowercase-l" id="id15"><sup>2</sup></a> dropping the filename's leading <tt class="docutils literal">lib</tt> and trailing
|
<li><p class="first">You can separately specify a directory to search (with <tt class="docutils literal"><span class="pre">-L</span></tt><em>directory</em>) and a library name to search for (with <tt class="docutils literal"><span class="pre">-l</span></tt><em>library</em>,<a class="footnote-reference" href="#lowercase-l" id="id15"><sup>2</sup></a> dropping the filename's leading <tt class="docutils literal"><span class="pre">lib</span></tt> and trailing
|
||||||
suffix (<tt class="docutils literal">.a</tt> in this case):</p>
|
suffix (<tt class="docutils literal"><span class="pre">.a</span></tt> in this case):</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
$ c++ -I <em>path/to/</em><tt class="docutils literal">boost_1_44_0</tt> example.cpp -o example <strong>\</strong>
|
$ c++ -I <em>path/to/</em><tt class="docutils literal"><span class="pre">boost_1_44_0</span></tt> example.cpp -o example <strong>\</strong>
|
||||||
<strong>-L~/boost/stage/lib/ -lboost_regex-gcc34-mt-d-1_36</strong>
|
<strong>-L~/boost/stage/lib/ -lboost_regex-gcc34-mt-d-1_36</strong>
|
||||||
</pre>
|
</pre>
|
||||||
<p>As you can see, this method is just as terse as method A for one
|
<p>As you can see, this method is just as terse as method A for one
|
||||||
library; it <em>really</em> pays off when you're using multiple
|
library; it <em>really</em> pays off when you're using multiple
|
||||||
libraries from the same directory. Note, however, that if you
|
libraries from the same directory. Note, however, that if you
|
||||||
use this method with a library that has both static (<tt class="docutils literal">.a</tt>) and
|
use this method with a library that has both static (<tt class="docutils literal"><span class="pre">.a</span></tt>) and
|
||||||
dynamic (<tt class="docutils literal">.so</tt>) builds, the system may choose one
|
dynamic (<tt class="docutils literal"><span class="pre">.so</span></tt>) builds, the system may choose one
|
||||||
automatically for you unless you pass a special option such as
|
automatically for you unless you pass a special option such as
|
||||||
<tt class="docutils literal"><span class="pre">-static</span></tt> on the command line.</p>
|
<tt class="docutils literal"><span class="pre">-static</span></tt> on the command line.</p>
|
||||||
</li>
|
</li>
|
||||||
@ -582,13 +582,13 @@ how it was built. For example,
|
|||||||
<tt class="docutils literal"><span class="pre">libboost_regex-vc71-mt-d-1_34.lib</span></tt> can be broken down into the
|
<tt class="docutils literal"><span class="pre">libboost_regex-vc71-mt-d-1_34.lib</span></tt> can be broken down into the
|
||||||
following elements:</p>
|
following elements:</p>
|
||||||
<dl class="docutils">
|
<dl class="docutils">
|
||||||
<dt><tt class="docutils literal">lib</tt></dt>
|
<dt><tt class="docutils literal"><span class="pre">lib</span></tt></dt>
|
||||||
<dd><em>Prefix</em>: except on Microsoft Windows, every Boost library
|
<dd><em>Prefix</em>: except on Microsoft Windows, every Boost library
|
||||||
name begins with this string. On Windows, only ordinary static
|
name begins with this string. On Windows, only ordinary static
|
||||||
libraries use the <tt class="docutils literal">lib</tt> prefix; import libraries and DLLs do
|
libraries use the <tt class="docutils literal"><span class="pre">lib</span></tt> prefix; import libraries and DLLs do
|
||||||
not.<a class="footnote-reference" href="#distinct" id="id17"><sup>4</sup></a></dd>
|
not.<a class="footnote-reference" href="#distinct" id="id17"><sup>4</sup></a></dd>
|
||||||
<dt><tt class="docutils literal">boost_regex</tt></dt>
|
<dt><tt class="docutils literal"><span class="pre">boost_regex</span></tt></dt>
|
||||||
<dd><em>Library name</em>: all boost library filenames begin with <tt class="docutils literal">boost_</tt>.</dd>
|
<dd><em>Library name</em>: all boost library filenames begin with <tt class="docutils literal"><span class="pre">boost_</span></tt>.</dd>
|
||||||
<dt><tt class="docutils literal"><span class="pre">-vc71</span></tt></dt>
|
<dt><tt class="docutils literal"><span class="pre">-vc71</span></tt></dt>
|
||||||
<dd><em>Toolset tag</em>: identifies the <a class="reference internal" href="#toolset">toolset</a> and version used to build
|
<dd><em>Toolset tag</em>: identifies the <a class="reference internal" href="#toolset">toolset</a> and version used to build
|
||||||
the binary.</dd>
|
the binary.</dd>
|
||||||
@ -615,24 +615,24 @@ feature, a single letter is added to the tag:</p>
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr><td><tt class="docutils literal">s</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">s</span></tt></td>
|
||||||
<td>linking statically to the C++ standard library and compiler runtime support
|
<td>linking statically to the C++ standard library and compiler runtime support
|
||||||
libraries.</td>
|
libraries.</td>
|
||||||
<td>runtime-link=static</td>
|
<td>runtime-link=static</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">g</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">g</span></tt></td>
|
||||||
<td>using debug versions of the standard and runtime support libraries.</td>
|
<td>using debug versions of the standard and runtime support libraries.</td>
|
||||||
<td>runtime-debugging=on</td>
|
<td>runtime-debugging=on</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">y</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">y</span></tt></td>
|
||||||
<td>using a special <a class="reference external" href="../../libs/python/doc/building.html#variants">debug build of Python</a>.</td>
|
<td>using a special <a class="reference external" href="../../libs/python/doc/building.html#variants">debug build of Python</a>.</td>
|
||||||
<td>python-debugging=on</td>
|
<td>python-debugging=on</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">d</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">d</span></tt></td>
|
||||||
<td>building a debug version of your code.<a class="footnote-reference" href="#debug-abi" id="id18"><sup>5</sup></a></td>
|
<td>building a debug version of your code.<a class="footnote-reference" href="#debug-abi" id="id18"><sup>5</sup></a></td>
|
||||||
<td>variant=debug</td>
|
<td>variant=debug</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">p</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">p</span></tt></td>
|
||||||
<td>using the STLPort standard library rather than the default one supplied with
|
<td>using the STLPort standard library rather than the default one supplied with
|
||||||
your compiler.</td>
|
your compiler.</td>
|
||||||
<td>stdlib=stlport</td>
|
<td>stdlib=stlport</td>
|
||||||
@ -650,12 +650,12 @@ ABI tag is ommitted.</p>
|
|||||||
<dd><em>Version tag</em>: the full Boost release number, with periods
|
<dd><em>Version tag</em>: the full Boost release number, with periods
|
||||||
replaced by underscores. For example, version 1.31.1 would be
|
replaced by underscores. For example, version 1.31.1 would be
|
||||||
tagged as "-1_31_1".</dd>
|
tagged as "-1_31_1".</dd>
|
||||||
<dt><tt class="docutils literal">.lib</tt></dt>
|
<dt><tt class="docutils literal"><span class="pre">.lib</span></tt></dt>
|
||||||
<dd><em>Extension</em>: determined according to the operating system's usual
|
<dd><em>Extension</em>: determined according to the operating system's usual
|
||||||
convention. On most unix-style platforms the extensions are
|
convention. On most unix-style platforms the extensions are
|
||||||
<tt class="docutils literal">.a</tt> and <tt class="docutils literal">.so</tt> for static libraries (archives) and shared
|
<tt class="docutils literal"><span class="pre">.a</span></tt> and <tt class="docutils literal"><span class="pre">.so</span></tt> for static libraries (archives) and shared
|
||||||
libraries, respectively. On Windows, <tt class="docutils literal">.dll</tt> indicates a shared
|
libraries, respectively. On Windows, <tt class="docutils literal"><span class="pre">.dll</span></tt> indicates a shared
|
||||||
library and <tt class="docutils literal">.lib</tt> indicates a
|
library and <tt class="docutils literal"><span class="pre">.lib</span></tt> indicates a
|
||||||
static or import library. Where supported by toolsets on unix
|
static or import library. Where supported by toolsets on unix
|
||||||
variants, a full version extension is added (e.g. ".so.1.34") and
|
variants, a full version extension is added (e.g. ".so.1.34") and
|
||||||
a symbolic link to the library file, named without the trailing
|
a symbolic link to the library file, named without the trailing
|
||||||
@ -669,7 +669,7 @@ version number, will also be created.</dd>
|
|||||||
<div class="section" id="test-your-program">
|
<div class="section" id="test-your-program">
|
||||||
<h2><a class="toc-backref" href="#id36">6.2 Test Your Program</a></h2>
|
<h2><a class="toc-backref" href="#id36">6.2 Test Your Program</a></h2>
|
||||||
<p>To test our subject extraction, we'll filter the following text
|
<p>To test our subject extraction, we'll filter the following text
|
||||||
file. Copy it out of your browser and save it as <tt class="docutils literal">jayne.txt</tt>:</p>
|
file. Copy it out of your browser and save it as <tt class="docutils literal"><span class="pre">jayne.txt</span></tt>:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
To: George Shmidlap
|
To: George Shmidlap
|
||||||
From: Rita Marlowe
|
From: Rita Marlowe
|
||||||
@ -682,15 +682,15 @@ platform-specific settings so that the system will be able to find
|
|||||||
and load it when your program is run. Most platforms have an
|
and load it when your program is run. Most platforms have an
|
||||||
environment variable to which you can add the directory containing
|
environment variable to which you can add the directory containing
|
||||||
the library. On many platforms (Linux, FreeBSD) that variable is
|
the library. On many platforms (Linux, FreeBSD) that variable is
|
||||||
<tt class="docutils literal">LD_LIBRARY_PATH</tt>, but on MacOS it's <tt class="docutils literal">DYLD_LIBRARY_PATH</tt>, and
|
<tt class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></tt>, but on MacOS it's <tt class="docutils literal"><span class="pre">DYLD_LIBRARY_PATH</span></tt>, and
|
||||||
on Cygwin it's simply <tt class="docutils literal">PATH</tt>. In most shells other than <tt class="docutils literal">csh</tt>
|
on Cygwin it's simply <tt class="docutils literal"><span class="pre">PATH</span></tt>. In most shells other than <tt class="docutils literal"><span class="pre">csh</span></tt>
|
||||||
and <tt class="docutils literal">tcsh</tt>, you can adjust the variable as follows (again, don't
|
and <tt class="docutils literal"><span class="pre">tcsh</span></tt>, you can adjust the variable as follows (again, don't
|
||||||
type the <tt class="docutils literal">$</tt>—that represents the shell prompt):</p>
|
type the <tt class="docutils literal"><span class="pre">$</span></tt>—that represents the shell prompt):</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
<strong>$</strong> <em>VARIABLE_NAME</em>=<em>path/to/lib/directory</em>:${<em>VARIABLE_NAME</em>}
|
<strong>$</strong> <em>VARIABLE_NAME</em>=<em>path/to/lib/directory</em>:${<em>VARIABLE_NAME</em>}
|
||||||
<strong>$</strong> export <em>VARIABLE_NAME</em>
|
<strong>$</strong> export <em>VARIABLE_NAME</em>
|
||||||
</pre>
|
</pre>
|
||||||
<p>On <tt class="docutils literal">csh</tt> and <tt class="docutils literal">tcsh</tt>, it's</p>
|
<p>On <tt class="docutils literal"><span class="pre">csh</span></tt> and <tt class="docutils literal"><span class="pre">tcsh</span></tt>, it's</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
<strong>$</strong> setenv <em>VARIABLE_NAME</em> <em>path/to/lib/directory</em>:${<em>VARIABLE_NAME</em>}
|
<strong>$</strong> setenv <em>VARIABLE_NAME</em> <em>path/to/lib/directory</em>:${<em>VARIABLE_NAME</em>}
|
||||||
</pre>
|
</pre>
|
||||||
@ -776,7 +776,7 @@ same name.</td></tr>
|
|||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr><td class="label"><a class="fn-backref" href="#id18">[5]</a></td><td>These libraries were compiled without optimization
|
<tr><td class="label"><a class="fn-backref" href="#id18">[5]</a></td><td>These libraries were compiled without optimization
|
||||||
or inlining, with full debug symbols enabled, and without
|
or inlining, with full debug symbols enabled, and without
|
||||||
<tt class="docutils literal">NDEBUG</tt> <tt class="docutils literal">#define</tt>d. Although it's true that sometimes
|
<tt class="docutils literal"><span class="pre">NDEBUG</span></tt> <tt class="docutils literal"><span class="pre">#define</span></tt>d. Although it's true that sometimes
|
||||||
these choices don't affect binary compatibility with other
|
these choices don't affect binary compatibility with other
|
||||||
compiled code, you can't count on that with Boost libraries.</td></tr>
|
compiled code, you can't count on that with Boost libraries.</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -108,7 +108,7 @@ least use
|
|||||||
**$** ./bootstrap.sh **--prefix=**\ *path*\ /\ *to*\ /\ *installation*\ /\ *prefix*
|
**$** ./bootstrap.sh **--prefix=**\ *path*\ /\ *to*\ /\ *installation*\ /\ *prefix*
|
||||||
|
|
||||||
to install somewhere else. Also, consider using the
|
to install somewhere else. Also, consider using the
|
||||||
``--show-libraries`` and ``--with-``\ *library_name* options to limit the
|
``--show-libraries`` and ``--with-libraries=``\ *library_name_list* options to limit the
|
||||||
long wait you'll experience if you build everything. Finally,
|
long wait you'll experience if you build everything. Finally,
|
||||||
|
|
||||||
.. parsed-literal::
|
.. parsed-literal::
|
||||||
|
@ -39,10 +39,10 @@ not supported—they may or may not work.</p>
|
|||||||
<li><a class="reference internal" href="#install-visual-studio-binaries" id="id37">5.1 Install Visual Studio Binaries</a></li>
|
<li><a class="reference internal" href="#install-visual-studio-binaries" id="id37">5.1 Install Visual Studio Binaries</a></li>
|
||||||
<li><a class="reference internal" href="#or-simplified-build-from-source" id="id38">5.2 Or, Simplified Build From Source</a></li>
|
<li><a class="reference internal" href="#or-simplified-build-from-source" id="id38">5.2 Or, Simplified Build From Source</a></li>
|
||||||
<li><a class="reference internal" href="#or-build-binaries-from-source" id="id39">5.3 Or, Build Binaries From Source</a><ul class="auto-toc">
|
<li><a class="reference internal" href="#or-build-binaries-from-source" id="id39">5.3 Or, Build Binaries From Source</a><ul class="auto-toc">
|
||||||
<li><a class="reference internal" href="#get-bjam" id="id40">5.3.1 Get <tt class="docutils literal">bjam</tt></a></li>
|
<li><a class="reference internal" href="#get-bjam" id="id40">5.3.1 Get <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
|
||||||
<li><a class="reference internal" href="#identify-your-toolset" id="id41">5.3.2 Identify Your Toolset</a></li>
|
<li><a class="reference internal" href="#identify-your-toolset" id="id41">5.3.2 Identify Your Toolset</a></li>
|
||||||
<li><a class="reference internal" href="#select-a-build-directory" id="id42">5.3.3 Select a Build Directory</a></li>
|
<li><a class="reference internal" href="#select-a-build-directory" id="id42">5.3.3 Select a Build Directory</a></li>
|
||||||
<li><a class="reference internal" href="#invoke-bjam" id="id43">5.3.4 Invoke <tt class="docutils literal">bjam</tt></a></li>
|
<li><a class="reference internal" href="#invoke-bjam" id="id43">5.3.4 Invoke <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a class="reference internal" href="#expected-build-output" id="id44">5.4 Expected Build Output</a></li>
|
<li><a class="reference internal" href="#expected-build-output" id="id44">5.4 Expected Build Output</a></li>
|
||||||
@ -73,7 +73,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">boost_1_44_0</tt><tt class="docutils literal">.7z</tt></a> or <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041"><tt class="docutils literal">boost_1_44_0</tt><tt class="docutils literal">.zip</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_44_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_44_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 -->
|
||||||
@ -104,43 +104,43 @@ distribution.<a class="footnote-reference" href="#zip" id="id2"><sup>1</sup></a>
|
|||||||
but most libraries follow a few patterns:</p>
|
but most libraries follow a few patterns:</p>
|
||||||
<ul class="pre-wrap last">
|
<ul class="pre-wrap last">
|
||||||
<li><p class="first">Some older libraries and most very small libraries place all
|
<li><p class="first">Some older libraries and most very small libraries place all
|
||||||
public headers directly into <tt class="docutils literal">boost</tt><tt class="docutils literal">\</tt>.</p>
|
public headers directly into <tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">\</span></tt>.</p>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Most libraries' public headers live in a subdirectory of
|
<li><p class="first">Most libraries' public headers live in a subdirectory of
|
||||||
<tt class="docutils literal">boost</tt><tt class="docutils literal">\</tt>, named after the library. For example, you'll find
|
<tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">\</span></tt>, named after the library. For example, you'll find
|
||||||
the Python library's <tt class="docutils literal">def.hpp</tt> header in</p>
|
the Python library's <tt class="docutils literal"><span class="pre">def.hpp</span></tt> header in</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
<tt class="docutils literal">boost</tt><tt class="docutils literal">\</tt><tt class="docutils literal">python</tt><tt class="docutils literal">\</tt><tt class="docutils literal">def.hpp</tt>.
|
<tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">\</span></tt><tt class="docutils literal"><span class="pre">python</span></tt><tt class="docutils literal"><span class="pre">\</span></tt><tt class="docutils literal"><span class="pre">def.hpp</span></tt>.
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Some libraries have an “aggregate header” in <tt class="docutils literal">boost</tt><tt class="docutils literal">\</tt> that
|
<li><p class="first">Some libraries have an “aggregate header” in <tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">\</span></tt> that
|
||||||
<tt class="docutils literal">#include</tt>s all of the library's other headers. For
|
<tt class="docutils literal"><span class="pre">#include</span></tt>s all of the library's other headers. For
|
||||||
example, <a class="reference external" href="../../libs/python/doc/building.html">Boost.Python</a>'s aggregate header is</p>
|
example, <a class="reference external" href="../../libs/python/doc/building.html">Boost.Python</a>'s aggregate header is</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
<tt class="docutils literal">boost</tt><tt class="docutils literal">\</tt><tt class="docutils literal">python.hpp</tt>.
|
<tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">\</span></tt><tt class="docutils literal"><span class="pre">python.hpp</span></tt>.
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Most libraries place private headers in a subdirectory called
|
<li><p class="first">Most libraries place private headers in a subdirectory called
|
||||||
<tt class="docutils literal">detail</tt><tt class="docutils literal">\</tt>, or <tt class="docutils literal">aux_</tt><tt class="docutils literal">\</tt>. Don't expect to find
|
<tt class="docutils literal"><span class="pre">detail</span></tt><tt class="docutils literal"><span class="pre">\</span></tt>, or <tt class="docutils literal"><span class="pre">aux_</span></tt><tt class="docutils literal"><span class="pre">\</span></tt>. Don't expect to find
|
||||||
anything you can use in these directories.</p>
|
anything you can use in these directories.</p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</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> Files\boost\</tt><tt class="docutils literal">boost_1_44_0</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_44_0</span></tt>) is
|
||||||
sometimes referred to as <tt class="docutils literal">$BOOST_ROOT</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>
|
||||||
<li><p class="first">To compile anything in Boost, you need a directory containing
|
<li><p class="first">To compile anything in Boost, you need a directory containing
|
||||||
the <tt class="docutils literal">boost</tt><tt class="docutils literal">\</tt> subdirectory in your <tt class="docutils literal">#include</tt> path. Specific steps for setting up <tt class="docutils literal">#include</tt>
|
the <tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">\</span></tt> subdirectory in your <tt class="docutils literal"><span class="pre">#include</span></tt> path. Specific steps for setting up <tt class="docutils literal"><span class="pre">#include</span></tt>
|
||||||
paths in Microsoft Visual Studio follow later in this document;
|
paths in Microsoft Visual Studio follow later in this document;
|
||||||
if you use another IDE, please consult your product's
|
if you use another IDE, please consult your product's
|
||||||
documentation for instructions.</p>
|
documentation for instructions.</p>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Since all of Boost's header files have the <tt class="docutils literal">.hpp</tt> extension,
|
<li><p class="first">Since all of Boost's header files have the <tt class="docutils literal"><span class="pre">.hpp</span></tt> extension,
|
||||||
and live in the <tt class="docutils literal">boost</tt><tt class="docutils literal">\</tt> subdirectory of the boost root, your
|
and live in the <tt class="docutils literal"><span class="pre">boost</span></tt><tt class="docutils literal"><span class="pre">\</span></tt> subdirectory of the boost root, your
|
||||||
Boost <tt class="docutils literal">#include</tt> directives will look like:</p>
|
Boost <tt class="docutils literal"><span class="pre">#include</span></tt> directives will look like:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
#include <boost/<em>whatever</em>.hpp>
|
#include <boost/<em>whatever</em>.hpp>
|
||||||
</pre>
|
</pre>
|
||||||
@ -151,11 +151,11 @@ Boost <tt class="docutils literal">#include</tt> directives will look like:</p>
|
|||||||
<p>depending on your preference regarding the use of angle bracket
|
<p>depending on your preference regarding the use of angle bracket
|
||||||
includes. Even Windows users can (and, for
|
includes. Even Windows users can (and, for
|
||||||
portability reasons, probably should) use forward slashes in
|
portability reasons, probably should) use forward slashes in
|
||||||
<tt class="docutils literal">#include</tt> directives; your compiler doesn't care.</p>
|
<tt class="docutils literal"><span class="pre">#include</span></tt> directives; your compiler doesn't care.</p>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Don't be distracted by the <tt class="docutils literal">doc</tt><tt class="docutils literal">\</tt> subdirectory; it only
|
<li><p class="first">Don't be distracted by the <tt class="docutils literal"><span class="pre">doc</span></tt><tt class="docutils literal"><span class="pre">\</span></tt> subdirectory; it only
|
||||||
contains a subset of the Boost documentation. Start with
|
contains a subset of the Boost documentation. Start with
|
||||||
<tt class="docutils literal">libs</tt><tt class="docutils literal">\</tt><tt class="docutils literal">index.html</tt> if you're looking for the whole enchilada.</p>
|
<tt class="docutils literal"><span class="pre">libs</span></tt><tt class="docutils literal"><span class="pre">\</span></tt><tt class="docutils literal"><span class="pre">index.html</span></tt> if you're looking for the whole enchilada.</p>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
||||||
@ -191,7 +191,7 @@ before building and installing it)</li>
|
|||||||
<p>A few libraries have optional separately-compiled binaries:</p>
|
<p>A few libraries have optional separately-compiled binaries:</p>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li><a class="reference external" href="../../libs/date_time/index.html">Boost.DateTime</a> has a binary component that is only needed if
|
<li><a class="reference external" href="../../libs/date_time/index.html">Boost.DateTime</a> has a binary component that is only needed if
|
||||||
you're using its <tt class="docutils literal">to_string</tt>/<tt class="docutils literal">from_string</tt> or serialization
|
you're using its <tt class="docutils literal"><span class="pre">to_string</span></tt>/<tt class="docutils literal"><span class="pre">from_string</span></tt> or serialization
|
||||||
features, or if you're targeting Visual C++ 6.x or Borland.</li>
|
features, or if you're targeting Visual C++ 6.x or Borland.</li>
|
||||||
<li><a class="reference external" href="../../libs/graph/index.html">Boost.Graph</a> also has a binary component that is only needed if
|
<li><a class="reference external" href="../../libs/graph/index.html">Boost.Graph</a> also has a binary component that is only needed if
|
||||||
you intend to <a class="reference external" href="../../libs/graph/doc/read_graphviz.html">parse GraphViz files</a>.</li>
|
you intend to <a class="reference external" href="../../libs/graph/doc/read_graphviz.html">parse GraphViz files</a>.</li>
|
||||||
@ -224,7 +224,7 @@ int main()
|
|||||||
in(std::cin), in(), std::cout << (_1 * 3) << " " );
|
in(std::cin), in(), std::cout << (_1 * 3) << " " );
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
<p>Copy the text of this program into a file called <tt class="docutils literal">example.cpp</tt>.</p>
|
<p>Copy the text of this program into a file called <tt class="docutils literal"><span class="pre">example.cpp</span></tt>.</p>
|
||||||
<div class="note" id="command-line-tool">
|
<div class="note" id="command-line-tool">
|
||||||
<span id="command-prompt"></span><p class="first admonition-title">Note</p>
|
<span id="command-prompt"></span><p class="first admonition-title">Note</p>
|
||||||
<p class="last">To build the examples in this guide, you can use an
|
<p class="last">To build the examples in this guide, you can use an
|
||||||
@ -253,10 +253,10 @@ 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> Files\boost\</tt><tt class="docutils literal">boost_1_44_0</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_44_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">^</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
|
||||||
on this page use that technique to save horizontal space.</p>
|
on this page use that technique to save horizontal space.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="build-from-the-visual-studio-ide">
|
<div class="section" id="build-from-the-visual-studio-ide">
|
||||||
@ -278,14 +278,14 @@ 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> Files\boost\</tt><tt class="docutils literal">boost_1_44_0</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_44_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
|
||||||
<em>Use Precompiled Header (/Yu)</em> to <em>Not Using Precompiled
|
<em>Use Precompiled Header (/Yu)</em> to <em>Not Using Precompiled
|
||||||
Headers</em>.<a class="footnote-reference" href="#pch" id="id5"><sup>3</sup></a></p>
|
Headers</em>.<a class="footnote-reference" href="#pch" id="id5"><sup>3</sup></a></p>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">Replace the contents of the <tt class="docutils literal">example.cpp</tt> generated by the IDE
|
<li><p class="first">Replace the contents of the <tt class="docutils literal"><span class="pre">example.cpp</span></tt> generated by the IDE
|
||||||
with the example code above.</p>
|
with the example code above.</p>
|
||||||
</li>
|
</li>
|
||||||
<li><p class="first">From the <em>Build</em> menu, select <em>Build Solution</em>.</p>
|
<li><p class="first">From the <em>Build</em> menu, select <em>Build Solution</em>.</p>
|
||||||
@ -316,7 +316,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">boost_1_44_0</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_44_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">
|
||||||
@ -346,8 +346,8 @@ you'll need to acquire library binaries.</p>
|
|||||||
<div class="section" id="install-visual-studio-binaries">
|
<div class="section" id="install-visual-studio-binaries">
|
||||||
<h2><a class="toc-backref" href="#id37">5.1 Install Visual Studio Binaries</a></h2>
|
<h2><a class="toc-backref" href="#id37">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">lib\</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> Files\boost\</tt><tt class="docutils literal">boost_1_44_0</tt><tt class="docutils literal">\lib\</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_44_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>
|
||||||
@ -366,7 +366,7 @@ bootstrap
|
|||||||
<p>The first command prepares the Boost.Build system for use. The second
|
<p>The first command prepares the Boost.Build system for use. The second
|
||||||
command invokes Boost.Build to build the separately-compiled Boost
|
command invokes Boost.Build to build the separately-compiled Boost
|
||||||
libraries. Please consult the <a class="reference external" href="http://www.boost.org/boost-build2/doc/html/bbv2/overview/invocation.html">Boost.Build documentation</a> for a list
|
libraries. Please consult the <a class="reference external" href="http://www.boost.org/boost-build2/doc/html/bbv2/overview/invocation.html">Boost.Build documentation</a> for a list
|
||||||
of options that can be passed to <tt class="docutils literal">bjam</tt>.</p>
|
of options that can be passed to <tt class="docutils literal"><span class="pre">bjam</span></tt>.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="or-build-binaries-from-source">
|
<div class="section" id="or-build-binaries-from-source">
|
||||||
<h2><a class="toc-backref" href="#id39">5.3 Or, Build Binaries From Source</a></h2>
|
<h2><a class="toc-backref" href="#id39">5.3 Or, Build Binaries From Source</a></h2>
|
||||||
@ -383,19 +383,19 @@ separately. See the <a class="reference external" href="https://svn.boost.org/t
|
|||||||
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
||||||
<p><a class="reference external" href="../../tools/build/index.html">Boost.Build</a> is a text-based system for developing, testing, and
|
<p><a class="reference external" href="../../tools/build/index.html">Boost.Build</a> is a text-based system for developing, testing, and
|
||||||
installing software. To use it, you'll need an executable called
|
installing software. To use it, you'll need an executable called
|
||||||
<tt class="docutils literal">bjam</tt>.</p>
|
<tt class="docutils literal"><span class="pre">bjam</span></tt>.</p>
|
||||||
<!-- .. _Boost.Jam documentation: Boost.Jam_ -->
|
<!-- .. _Boost.Jam documentation: Boost.Jam_ -->
|
||||||
<div class="section" id="get-bjam">
|
<div class="section" id="get-bjam">
|
||||||
<h3><a class="toc-backref" href="#id40">5.3.1 Get <tt class="docutils literal">bjam</tt></a></h3>
|
<h3><a class="toc-backref" href="#id40">5.3.1 Get <tt class="docutils literal"><span class="pre">bjam</span></tt></a></h3>
|
||||||
<p><tt class="docutils literal">bjam</tt> is the <a class="reference internal" href="#command-line-tool">command-line tool</a> that drives the Boost Build
|
<p><tt class="docutils literal"><span class="pre">bjam</span></tt> is the <a class="reference internal" href="#command-line-tool">command-line tool</a> that drives the Boost Build
|
||||||
system. To build Boost binaries, you'll invoke <tt class="docutils literal">bjam</tt> from the
|
system. To build Boost binaries, you'll invoke <tt class="docutils literal"><span class="pre">bjam</span></tt> from the
|
||||||
Boost root.</p>
|
Boost root.</p>
|
||||||
<p>We suggest you <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941">download a pre-built <tt class="docutils literal">bjam</tt> executable</a> for your platform.
|
<p>We suggest you <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941">download a pre-built <tt class="docutils literal"><span class="pre">bjam</span></tt> executable</a> for your platform.
|
||||||
Alternatively, you can build <tt class="docutils literal">bjam</tt> yourself using <a class="reference external" href="../../doc/html/jam/building.html">these
|
Alternatively, you can build <tt class="docutils literal"><span class="pre">bjam</span></tt> yourself using <a class="reference external" href="../../doc/html/jam/building.html">these
|
||||||
instructions</a>.</p>
|
instructions</a>.</p>
|
||||||
<p>Move the <tt class="docutils literal">bjam</tt> executable into a directory in your PATH. You can
|
<p>Move the <tt class="docutils literal"><span class="pre">bjam</span></tt> executable into a directory in your PATH. You can
|
||||||
see the list of directories in your PATH, separated by semicolons,
|
see the list of directories in your PATH, separated by semicolons,
|
||||||
by typing “<tt class="docutils literal">PATH</tt>” at the command prompt.</p>
|
by typing “<tt class="docutils literal"><span class="pre">PATH</span></tt>” at the command prompt.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="identify-your-toolset">
|
<div class="section" id="identify-your-toolset">
|
||||||
<span id="toolset-name"></span><span id="toolset"></span><h3><a class="toc-backref" href="#id41">5.3.2 Identify Your Toolset</a></h3>
|
<span id="toolset-name"></span><span id="toolset"></span><h3><a class="toc-backref" href="#id41">5.3.2 Identify Your Toolset</a></h3>
|
||||||
@ -422,70 +422,70 @@ Name</th>
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr><td><tt class="docutils literal">acc</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">acc</span></tt></td>
|
||||||
<td>Hewlett Packard</td>
|
<td>Hewlett Packard</td>
|
||||||
<td>Only very recent versions are
|
<td>Only very recent versions are
|
||||||
known to work well with Boost</td>
|
known to work well with Boost</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">borland</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">borland</span></tt></td>
|
||||||
<td>Borland</td>
|
<td>Borland</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">como</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">como</span></tt></td>
|
||||||
<td>Comeau Computing</td>
|
<td>Comeau Computing</td>
|
||||||
<td>Using this toolset may
|
<td>Using this toolset may
|
||||||
require <a class="reference external" href="../../tools/build/index.html">configuring</a> another
|
require <a class="reference external" href="../../tools/build/index.html">configuring</a> another
|
||||||
toolset to act as its backend</td>
|
toolset to act as its backend</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">cw</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">cw</span></tt></td>
|
||||||
<td>Metrowerks/Freescale</td>
|
<td>Metrowerks/Freescale</td>
|
||||||
<td>The CodeWarrior compiler. We
|
<td>The CodeWarrior compiler. We
|
||||||
have not tested versions of
|
have not tested versions of
|
||||||
this compiler produced since
|
this compiler produced since
|
||||||
it was sold to Freescale.</td>
|
it was sold to Freescale.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">dmc</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">dmc</span></tt></td>
|
||||||
<td>Digital Mars</td>
|
<td>Digital Mars</td>
|
||||||
<td>As of this Boost release, no
|
<td>As of this Boost release, no
|
||||||
version of dmc is known to
|
version of dmc is known to
|
||||||
handle Boost well.</td>
|
handle Boost well.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">darwin</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">darwin</span></tt></td>
|
||||||
<td>Apple Computer</td>
|
<td>Apple Computer</td>
|
||||||
<td>Apple's version of the GCC
|
<td>Apple's version of the GCC
|
||||||
toolchain with support for
|
toolchain with support for
|
||||||
Darwin and MacOS X features
|
Darwin and MacOS X features
|
||||||
such as frameworks.</td>
|
such as frameworks.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">gcc</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">gcc</span></tt></td>
|
||||||
<td>The Gnu Project</td>
|
<td>The Gnu Project</td>
|
||||||
<td>Includes support for Cygwin
|
<td>Includes support for Cygwin
|
||||||
and MinGW compilers.</td>
|
and MinGW compilers.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">hp_cxx</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">hp_cxx</span></tt></td>
|
||||||
<td>Hewlett Packard</td>
|
<td>Hewlett Packard</td>
|
||||||
<td>Targeted at the Tru64
|
<td>Targeted at the Tru64
|
||||||
operating system.</td>
|
operating system.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">intel</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">intel</span></tt></td>
|
||||||
<td>Intel</td>
|
<td>Intel</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">msvc</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">msvc</span></tt></td>
|
||||||
<td>Microsoft</td>
|
<td>Microsoft</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">qcc</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">qcc</span></tt></td>
|
||||||
<td>QNX Software Systems</td>
|
<td>QNX Software Systems</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">sun</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">sun</span></tt></td>
|
||||||
<td>Sun</td>
|
<td>Sun</td>
|
||||||
<td>Only very recent versions are
|
<td>Only very recent versions are
|
||||||
known to work well with
|
known to work well with
|
||||||
Boost.</td>
|
Boost.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">vacpp</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">vacpp</span></tt></td>
|
||||||
<td>IBM</td>
|
<td>IBM</td>
|
||||||
<td>The VisualAge C++ compiler.</td>
|
<td>The VisualAge C++ compiler.</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -504,13 +504,13 @@ detection code) or <a class="reference internal" href="#auto-linking">auto-linki
|
|||||||
<p><a class="reference external" href="../../tools/build/index.html">Boost.Build</a> will place all intermediate files it generates while
|
<p><a class="reference external" href="../../tools/build/index.html">Boost.Build</a> will place all intermediate files it generates while
|
||||||
building into the <strong>build directory</strong>. If your Boost root
|
building into the <strong>build directory</strong>. If your Boost root
|
||||||
directory is writable, this step isn't strictly necessary: by
|
directory is writable, this step isn't strictly necessary: by
|
||||||
default Boost.Build will create a <tt class="docutils literal">bin.v2/</tt> subdirectory for that
|
default Boost.Build will create a <tt class="docutils literal"><span class="pre">bin.v2/</span></tt> subdirectory for that
|
||||||
purpose in your current working directory.</p>
|
purpose in your current working directory.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="invoke-bjam">
|
<div class="section" id="invoke-bjam">
|
||||||
<h3><a class="toc-backref" href="#id43">5.3.4 Invoke <tt class="docutils literal">bjam</tt></a></h3>
|
<h3><a class="toc-backref" href="#id43">5.3.4 Invoke <tt class="docutils literal"><span class="pre">bjam</span></tt></a></h3>
|
||||||
<p>Change your current directory to the Boost root directory and
|
<p>Change your current directory to the Boost root directory and
|
||||||
invoke <tt class="docutils literal">bjam</tt> as follows:</p>
|
invoke <tt class="docutils literal"><span class="pre">bjam</span></tt> as follows:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
bjam <strong>--build-dir=</strong><a class="reference internal" href="#id14"><em>build-directory</em></a> <strong>toolset=</strong><a class="reference internal" href="#toolset-name"><em>toolset-name</em></a> <strong>--build-type=complete</strong> stage
|
bjam <strong>--build-dir=</strong><a class="reference internal" href="#id14"><em>build-directory</em></a> <strong>toolset=</strong><a class="reference internal" href="#toolset-name"><em>toolset-name</em></a> <strong>--build-type=complete</strong> stage
|
||||||
</pre>
|
</pre>
|
||||||
@ -518,30 +518,30 @@ bjam <strong>--build-dir=</strong><a class="reference internal" href="#id14"><em
|
|||||||
please see the <a class="reference external" href="http://www.boost.org/boost-build2/doc/html/bbv2/advanced/invocation.html">Boost.Build documentation</a>.</p>
|
please see the <a class="reference external" href="http://www.boost.org/boost-build2/doc/html/bbv2/advanced/invocation.html">Boost.Build documentation</a>.</p>
|
||||||
<p>For example, your session might look like this:<a class="footnote-reference" href="#continuation" id="id16"><sup>4</sup></a></p>
|
<p>For example, your session might look like this:<a class="footnote-reference" href="#continuation" id="id16"><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> Files\boost\</tt><tt class="docutils literal">boost_1_44_0</tt>
|
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_44_0</span></tt>
|
||||||
<tt class="docutils literal"><span class="pre">C:\Program</span> Files\boost\</tt><tt class="docutils literal">boost_1_44_0</tt>> bjam <strong>^</strong>
|
<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_44_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>
|
||||||
<p>Be sure to read <a class="reference internal" href="#continuation">this note</a> about the appearance of <tt class="docutils literal">^</tt>,
|
<p>Be sure to read <a class="reference internal" href="#continuation">this note</a> about the appearance of <tt class="docutils literal"><span class="pre">^</span></tt>,
|
||||||
<tt class="docutils literal">More?</tt> and quotation marks (<tt class="docutils literal">"</tt>) in that line.</p>
|
<tt class="docutils literal"><span class="pre">More?</span></tt> and quotation marks (<tt class="docutils literal"><span class="pre">"</span></tt>) in that line.</p>
|
||||||
<p>The option “<strong>--build-type=complete</strong>” causes <tt class="docutils literal">bjam</tt> to build
|
<p>The option “<strong>--build-type=complete</strong>” causes <tt class="docutils literal"><span class="pre">bjam</span></tt> to build
|
||||||
all supported variants of the libraries. For instructions on how to
|
all supported variants of the libraries. For instructions on how to
|
||||||
build only specific variants, please ask on the <a class="reference external" href="http://www.boost.org/more/mailing_lists.htm#jamboost">Boost.Build mailing
|
build only specific variants, please ask on the <a class="reference external" href="http://www.boost.org/more/mailing_lists.htm#jamboost">Boost.Build mailing
|
||||||
list</a>.</p>
|
list</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 -->
|
||||||
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
||||||
<p>Building the special <tt class="docutils literal">stage</tt> target places Boost
|
<p>Building the special <tt class="docutils literal"><span class="pre">stage</span></tt> target places Boost
|
||||||
library binaries in the <tt class="docutils literal">stage</tt><tt class="docutils literal">\</tt><tt class="docutils literal">lib</tt><tt class="docutils literal">\</tt> subdirectory of your <a class="reference internal" href="#build-directory">build
|
library binaries in the <tt class="docutils literal"><span class="pre">stage</span></tt><tt class="docutils literal"><span class="pre">\</span></tt><tt class="docutils literal"><span class="pre">lib</span></tt><tt class="docutils literal"><span class="pre">\</span></tt> subdirectory of your <a class="reference internal" href="#build-directory">build
|
||||||
directory</a>.</p>
|
directory</a>.</p>
|
||||||
<div class="note">
|
<div class="note">
|
||||||
<p class="first admonition-title">Note</p>
|
<p class="first admonition-title">Note</p>
|
||||||
<p class="last"><tt class="docutils literal">bjam</tt> is case-sensitive; it is important that all the
|
<p class="last"><tt class="docutils literal"><span class="pre">bjam</span></tt> is case-sensitive; it is important that all the
|
||||||
parts shown in <strong>bold</strong> type above be entirely lower-case.</p>
|
parts shown in <strong>bold</strong> type above be entirely lower-case.</p>
|
||||||
</div>
|
</div>
|
||||||
<p>For a description of other options you can pass when invoking
|
<p>For a description of other options you can pass when invoking
|
||||||
<tt class="docutils literal">bjam</tt>, type:</p>
|
<tt class="docutils literal"><span class="pre">bjam</span></tt>, type:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
bjam --help
|
bjam --help
|
||||||
</pre>
|
</pre>
|
||||||
@ -549,16 +549,16 @@ bjam --help
|
|||||||
be interested in:</p>
|
be interested in:</p>
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
<li>reviewing the list of library names with <tt class="docutils literal"><span class="pre">--show-libraries</span></tt></li>
|
<li>reviewing the list of library names with <tt class="docutils literal"><span class="pre">--show-libraries</span></tt></li>
|
||||||
<li>limiting which libraries get built with the <tt class="docutils literal"><span class="pre">--with-</span></tt><em>library-name</em> or <tt class="docutils literal"><span class="pre">--without-</span></tt><em>library-name</em> options</li>
|
<li>limiting which libraries get built with the <tt class="docutils literal"><span class="pre">--with-libraries=</span></tt><em>library-name-list</em> option</li>
|
||||||
<li>choosing a specific build variant by adding <tt class="docutils literal">release</tt> or
|
<li>choosing a specific build variant by adding <tt class="docutils literal"><span class="pre">release</span></tt> or
|
||||||
<tt class="docutils literal">debug</tt> to the command line.</li>
|
<tt class="docutils literal"><span class="pre">debug</span></tt> to the command line.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="note">
|
<div class="note">
|
||||||
<p class="first admonition-title">Note</p>
|
<p class="first admonition-title">Note</p>
|
||||||
<p class="last">Boost.Build can produce a great deal of output, which can
|
<p class="last">Boost.Build can produce a great deal of output, which can
|
||||||
make it easy to miss problems. If you want to make sure
|
make it easy to miss problems. If you want to make sure
|
||||||
everything is went well, you might redirect the output into a
|
everything is went well, you might redirect the output into a
|
||||||
file by appending “<tt class="docutils literal">>build.log <span class="pre">2>&1</span></tt>” to your command line.</p>
|
file by appending “<tt class="docutils literal"><span class="pre">>build.log</span> <span class="pre">2>&1</span></tt>” to your command line.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -657,7 +657,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> Files\boost\</tt><tt class="docutils literal">boost_1_44_0</tt><tt class="docutils literal">\lib\</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_44_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>
|
||||||
@ -667,9 +667,9 @@ e.g. <tt class="docutils literal"><span class="pre">C:\Program</span> Files\boos
|
|||||||
<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> Files\boost\</tt><tt class="docutils literal">boost_1_44_0</tt><tt class="docutils literal">\lib</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_44_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">boost_1_44_0</tt> example.cpp <strong>^</strong>
|
cl /EHsc /I <em>path\to\</em><tt class="docutils literal"><span class="pre">boost_1_44_0</span></tt> example.cpp <strong>^</strong>
|
||||||
<strong>/link /LIBPATH:</strong> <strong>C:\Program Files\boost\</strong><strong>boost_1_44_0</strong><strong>\lib</strong>
|
<strong>/link /LIBPATH:</strong> <strong>C:\Program Files\boost\</strong><strong>boost_1_44_0</strong><strong>\lib</strong>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@ -692,13 +692,13 @@ how it was built. For example,
|
|||||||
<tt class="docutils literal"><span class="pre">libboost_regex-vc71-mt-d-1_34.lib</span></tt> can be broken down into the
|
<tt class="docutils literal"><span class="pre">libboost_regex-vc71-mt-d-1_34.lib</span></tt> can be broken down into the
|
||||||
following elements:</p>
|
following elements:</p>
|
||||||
<dl class="docutils">
|
<dl class="docutils">
|
||||||
<dt><tt class="docutils literal">lib</tt></dt>
|
<dt><tt class="docutils literal"><span class="pre">lib</span></tt></dt>
|
||||||
<dd><em>Prefix</em>: except on Microsoft Windows, every Boost library
|
<dd><em>Prefix</em>: except on Microsoft Windows, every Boost library
|
||||||
name begins with this string. On Windows, only ordinary static
|
name begins with this string. On Windows, only ordinary static
|
||||||
libraries use the <tt class="docutils literal">lib</tt> prefix; import libraries and DLLs do
|
libraries use the <tt class="docutils literal"><span class="pre">lib</span></tt> prefix; import libraries and DLLs do
|
||||||
not.<a class="footnote-reference" href="#distinct" id="id24"><sup>6</sup></a></dd>
|
not.<a class="footnote-reference" href="#distinct" id="id24"><sup>6</sup></a></dd>
|
||||||
<dt><tt class="docutils literal">boost_regex</tt></dt>
|
<dt><tt class="docutils literal"><span class="pre">boost_regex</span></tt></dt>
|
||||||
<dd><em>Library name</em>: all boost library filenames begin with <tt class="docutils literal">boost_</tt>.</dd>
|
<dd><em>Library name</em>: all boost library filenames begin with <tt class="docutils literal"><span class="pre">boost_</span></tt>.</dd>
|
||||||
<dt><tt class="docutils literal"><span class="pre">-vc71</span></tt></dt>
|
<dt><tt class="docutils literal"><span class="pre">-vc71</span></tt></dt>
|
||||||
<dd><em>Toolset tag</em>: identifies the <a class="reference internal" href="#toolset">toolset</a> and version used to build
|
<dd><em>Toolset tag</em>: identifies the <a class="reference internal" href="#toolset">toolset</a> and version used to build
|
||||||
the binary.</dd>
|
the binary.</dd>
|
||||||
@ -725,24 +725,24 @@ feature, a single letter is added to the tag:</p>
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr><td><tt class="docutils literal">s</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">s</span></tt></td>
|
||||||
<td>linking statically to the C++ standard library and compiler runtime support
|
<td>linking statically to the C++ standard library and compiler runtime support
|
||||||
libraries.</td>
|
libraries.</td>
|
||||||
<td>runtime-link=static</td>
|
<td>runtime-link=static</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">g</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">g</span></tt></td>
|
||||||
<td>using debug versions of the standard and runtime support libraries.</td>
|
<td>using debug versions of the standard and runtime support libraries.</td>
|
||||||
<td>runtime-debugging=on</td>
|
<td>runtime-debugging=on</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">y</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">y</span></tt></td>
|
||||||
<td>using a special <a class="reference external" href="../../libs/python/doc/building.html#variants">debug build of Python</a>.</td>
|
<td>using a special <a class="reference external" href="../../libs/python/doc/building.html#variants">debug build of Python</a>.</td>
|
||||||
<td>python-debugging=on</td>
|
<td>python-debugging=on</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">d</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">d</span></tt></td>
|
||||||
<td>building a debug version of your code.<a class="footnote-reference" href="#debug-abi" id="id25"><sup>7</sup></a></td>
|
<td>building a debug version of your code.<a class="footnote-reference" href="#debug-abi" id="id25"><sup>7</sup></a></td>
|
||||||
<td>variant=debug</td>
|
<td>variant=debug</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td><tt class="docutils literal">p</tt></td>
|
<tr><td><tt class="docutils literal"><span class="pre">p</span></tt></td>
|
||||||
<td>using the STLPort standard library rather than the default one supplied with
|
<td>using the STLPort standard library rather than the default one supplied with
|
||||||
your compiler.</td>
|
your compiler.</td>
|
||||||
<td>stdlib=stlport</td>
|
<td>stdlib=stlport</td>
|
||||||
@ -760,12 +760,12 @@ ABI tag is ommitted.</p>
|
|||||||
<dd><em>Version tag</em>: the full Boost release number, with periods
|
<dd><em>Version tag</em>: the full Boost release number, with periods
|
||||||
replaced by underscores. For example, version 1.31.1 would be
|
replaced by underscores. For example, version 1.31.1 would be
|
||||||
tagged as "-1_31_1".</dd>
|
tagged as "-1_31_1".</dd>
|
||||||
<dt><tt class="docutils literal">.lib</tt></dt>
|
<dt><tt class="docutils literal"><span class="pre">.lib</span></tt></dt>
|
||||||
<dd><em>Extension</em>: determined according to the operating system's usual
|
<dd><em>Extension</em>: determined according to the operating system's usual
|
||||||
convention. On most unix-style platforms the extensions are
|
convention. On most unix-style platforms the extensions are
|
||||||
<tt class="docutils literal">.a</tt> and <tt class="docutils literal">.so</tt> for static libraries (archives) and shared
|
<tt class="docutils literal"><span class="pre">.a</span></tt> and <tt class="docutils literal"><span class="pre">.so</span></tt> for static libraries (archives) and shared
|
||||||
libraries, respectively. On Windows, <tt class="docutils literal">.dll</tt> indicates a shared
|
libraries, respectively. On Windows, <tt class="docutils literal"><span class="pre">.dll</span></tt> indicates a shared
|
||||||
library and <tt class="docutils literal">.lib</tt> indicates a
|
library and <tt class="docutils literal"><span class="pre">.lib</span></tt> indicates a
|
||||||
static or import library. Where supported by toolsets on unix
|
static or import library. Where supported by toolsets on unix
|
||||||
variants, a full version extension is added (e.g. ".so.1.34") and
|
variants, a full version extension is added (e.g. ".so.1.34") and
|
||||||
a symbolic link to the library file, named without the trailing
|
a symbolic link to the library file, named without the trailing
|
||||||
@ -779,7 +779,7 @@ version number, will also be created.</dd>
|
|||||||
<div class="section" id="test-your-program">
|
<div class="section" id="test-your-program">
|
||||||
<h2><a class="toc-backref" href="#id50">6.4 Test Your Program</a></h2>
|
<h2><a class="toc-backref" href="#id50">6.4 Test Your Program</a></h2>
|
||||||
<p>To test our subject extraction, we'll filter the following text
|
<p>To test our subject extraction, we'll filter the following text
|
||||||
file. Copy it out of your browser and save it as <tt class="docutils literal">jayne.txt</tt>:</p>
|
file. Copy it out of your browser and save it as <tt class="docutils literal"><span class="pre">jayne.txt</span></tt>:</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
To: George Shmidlap
|
To: George Shmidlap
|
||||||
From: Rita Marlowe
|
From: Rita Marlowe
|
||||||
@ -828,7 +828,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">boost_1_44_0</tt><tt class="docutils literal">.7z</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_44_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>
|
||||||
@ -839,7 +839,7 @@ built-in decompression as it can be painfully slow for large archives.</td></tr>
|
|||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr><td class="label">[2]</td><td>If you used the <a class="reference external" href="http://www.boostpro.com/products/free">installer</a> from Boost
|
<tr><td class="label">[2]</td><td>If you used the <a class="reference external" href="http://www.boostpro.com/products/free">installer</a> from Boost
|
||||||
Consulting and deselected “Source and Documentation” (it's
|
Consulting and deselected “Source and Documentation” (it's
|
||||||
selected by default), you won't see the <tt class="docutils literal">libs/</tt> subdirectory.
|
selected by default), you won't see the <tt class="docutils literal"><span class="pre">libs/</span></tt> subdirectory.
|
||||||
That won't affect your ability to use precompiled binaries, but
|
That won't affect your ability to use precompiled binaries, but
|
||||||
you won't be able to rebuild libraries from scratch.</td></tr>
|
you won't be able to rebuild libraries from scratch.</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -856,21 +856,21 @@ used in the examples.</td></tr>
|
|||||||
<table class="docutils footnote" frame="void" id="continuation" rules="none">
|
<table class="docutils footnote" frame="void" id="continuation" rules="none">
|
||||||
<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="#id16">[4]</a></td><td><p class="first">In this example, the caret character <tt class="docutils literal">^</tt> is a
|
<tr><td class="label"><a class="fn-backref" href="#id16">[4]</a></td><td><p class="first">In this example, the caret character <tt class="docutils literal"><span class="pre">^</span></tt> is a
|
||||||
way of continuing the command on multiple lines, and must be the
|
way of continuing the command on multiple lines, and must be the
|
||||||
<strong>final character</strong> used on the line to be continued (i.e. do
|
<strong>final character</strong> used on the line to be continued (i.e. do
|
||||||
not follow it with spaces). The command prompt responds with
|
not follow it with spaces). The command prompt responds with
|
||||||
<tt class="docutils literal">More?</tt> to prompt for more input. Feel free to omit the
|
<tt class="docutils literal"><span class="pre">More?</span></tt> to prompt for more input. Feel free to omit the
|
||||||
carets and subsequent newlines; we used them so the example
|
carets and subsequent newlines; we used them so the example
|
||||||
would fit on a page of reasonable width.</p>
|
would fit on a page of reasonable width.</p>
|
||||||
<p>The command prompt treats each bit of whitespace in the command
|
<p>The command prompt treats each bit of whitespace in the command
|
||||||
as an argument separator. That means quotation marks (<tt class="docutils literal">"</tt>)
|
as an argument separator. That means quotation marks (<tt class="docutils literal"><span class="pre">"</span></tt>)
|
||||||
are required to keep text together whenever a single
|
are required to keep text together whenever a single
|
||||||
command-line argument contains spaces, as in</p>
|
command-line argument contains spaces, as in</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
--build-dir=<span class="raw-html"><strong style="background-color:#B4FFB4">"</strong></span>C:\Documents<span class="raw-html"><strong style="color:#B4B4B4; background-color:#B4FFB4">_</strong></span>and<span class="raw-html"><strong style="color:#B4B4B4; background-color:#B4FFB4">_</strong></span>Settings\dave\build-boost<span class="raw-html"><strong style="background-color:#B4FFB4">"</strong></span>
|
--build-dir=<span class="raw-html"><strong style="background-color:#B4FFB4">"</strong></span>C:\Documents<span class="raw-html"><strong style="color:#B4B4B4; background-color:#B4FFB4">_</strong></span>and<span class="raw-html"><strong style="color:#B4B4B4; background-color:#B4FFB4">_</strong></span>Settings\dave\build-boost<span class="raw-html"><strong style="background-color:#B4FFB4">"</strong></span>
|
||||||
</pre>
|
</pre>
|
||||||
<p>Also, for example, you can't add spaces around the <tt class="docutils literal">=</tt> sign as in</p>
|
<p>Also, for example, you can't add spaces around the <tt class="docutils literal"><span class="pre">=</span></tt> sign as in</p>
|
||||||
<pre class="last literal-block">
|
<pre class="last literal-block">
|
||||||
--build-dir<span class="raw-html"><strong style="color:#B4B4B4; background-color:#FFB4B4">_</strong></span>=<span class="raw-html"><strong style="color:#B4B4B4; background-color:#FFB4B4">_</strong></span>"C:\Documents and Settings\dave\build-boost"
|
--build-dir<span class="raw-html"><strong style="color:#B4B4B4; background-color:#FFB4B4">_</strong></span>=<span class="raw-html"><strong style="color:#B4B4B4; background-color:#FFB4B4">_</strong></span>"C:\Documents and Settings\dave\build-boost"
|
||||||
</pre>
|
</pre>
|
||||||
@ -905,7 +905,7 @@ same name.</td></tr>
|
|||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr><td class="label"><a class="fn-backref" href="#id25">[7]</a></td><td>These libraries were compiled without optimization
|
<tr><td class="label"><a class="fn-backref" href="#id25">[7]</a></td><td>These libraries were compiled without optimization
|
||||||
or inlining, with full debug symbols enabled, and without
|
or inlining, with full debug symbols enabled, and without
|
||||||
<tt class="docutils literal">NDEBUG</tt> <tt class="docutils literal">#define</tt>d. Although it's true that sometimes
|
<tt class="docutils literal"><span class="pre">NDEBUG</span></tt> <tt class="docutils literal"><span class="pre">#define</span></tt>d. Although it's true that sometimes
|
||||||
these choices don't affect binary compatibility with other
|
these choices don't affect binary compatibility with other
|
||||||
compiled code, you can't count on that with Boost libraries.</td></tr>
|
compiled code, you can't count on that with Boost libraries.</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user