|
|
@@ -9,67 +9,67 @@
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="document" id="logo-getting-started-on-windows">
|
|
|
-<h1 class="title"><a class="reference" href="../../index.htm"><img alt="Boost" class="boost-logo" src="../../boost.png" /></a> Getting Started on Windows</h1>
|
|
|
+<h1 class="title"><a class="reference external" href="../../index.htm"><img alt="Boost" class="boost-logo" src="../../boost.png" /></a> Getting Started on Windows</h1>
|
|
|
|
|
|
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
|
|
<!-- Software License, Version 1.0. (See accompanying -->
|
|
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
|
|
<div class="admonition-a-note-to-cygwin-and-mingw-users admonition">
|
|
|
-<p class="first admonition-title">A note to <a class="reference" href="http://www.cygwin.com">Cygwin</a> and <a class="reference" href="http://mingw.org">MinGW</a> users</p>
|
|
|
+<p class="first admonition-title">A note to <a class="reference external" href="http://www.cygwin.com">Cygwin</a> and <a class="reference external" href="http://mingw.org">MinGW</a> users</p>
|
|
|
<p class="last">If you plan to use your tools from the Windows command prompt,
|
|
|
-you're in the right place. If you plan to build from the <a class="reference" href="http://www.cygwin.com">Cygwin</a>
|
|
|
+you're in the right place. If you plan to build from the <a class="reference external" href="http://www.cygwin.com">Cygwin</a>
|
|
|
bash shell, you're actually running on a POSIX platform and
|
|
|
-should follow the instructions for <a class="reference" href="unix-variants.html">getting started on Unix
|
|
|
-variants</a>. Other command shells, such as <a class="reference" href="http://mingw.org">MinGW</a>'s MSYS, are
|
|
|
+should follow the instructions for <a class="reference external" href="unix-variants.html">getting started on Unix
|
|
|
+variants</a>. Other command shells, such as <a class="reference external" href="http://mingw.org">MinGW</a>'s MSYS, are
|
|
|
not supported—they may or may not work.</p>
|
|
|
</div>
|
|
|
<div class="contents topic" id="index">
|
|
|
<p class="topic-title first">Index</p>
|
|
|
<ul class="auto-toc simple">
|
|
|
-<li><a class="reference" href="#get-boost" id="id22">1 Get Boost</a></li>
|
|
|
-<li><a class="reference" href="#the-boost-distribution" id="id23">2 The Boost Distribution</a></li>
|
|
|
-<li><a class="reference" href="#header-only-libraries" id="id24">3 Header-Only Libraries</a></li>
|
|
|
-<li><a class="reference" href="#build-a-simple-program-using-boost" id="id25">4 Build a Simple Program Using Boost</a><ul class="auto-toc">
|
|
|
-<li><a class="reference" href="#build-from-the-visual-studio-ide" id="id26">4.1 Build From the Visual Studio IDE</a></li>
|
|
|
-<li><a class="reference" href="#or-build-from-the-command-prompt" id="id27">4.2 Or, Build From the Command Prompt</a></li>
|
|
|
-<li><a class="reference" href="#errors-and-warnings" id="id28">4.3 Errors and Warnings</a></li>
|
|
|
+<li><a class="reference internal" href="#get-boost" id="id22">1 Get Boost</a></li>
|
|
|
+<li><a class="reference internal" href="#the-boost-distribution" id="id23">2 The Boost Distribution</a></li>
|
|
|
+<li><a class="reference internal" href="#header-only-libraries" id="id24">3 Header-Only Libraries</a></li>
|
|
|
+<li><a class="reference internal" href="#build-a-simple-program-using-boost" id="id25">4 Build a Simple Program Using Boost</a><ul class="auto-toc">
|
|
|
+<li><a class="reference internal" href="#build-from-the-visual-studio-ide" id="id26">4.1 Build From the Visual Studio IDE</a></li>
|
|
|
+<li><a class="reference internal" href="#or-build-from-the-command-prompt" id="id27">4.2 Or, Build From the Command Prompt</a></li>
|
|
|
+<li><a class="reference internal" href="#errors-and-warnings" id="id28">4.3 Errors and Warnings</a></li>
|
|
|
</ul>
|
|
|
</li>
|
|
|
-<li><a class="reference" href="#prepare-to-use-a-boost-library-binary" id="id29">5 Prepare to Use a Boost Library Binary</a><ul class="auto-toc">
|
|
|
-<li><a class="reference" href="#install-visual-studio-2005-or-net-2003-binaries" id="id30">5.1 Install Visual Studio (2005 or .NET 2003) Binaries</a></li>
|
|
|
-<li><a class="reference" href="#or-build-and-install-binaries-from-source" id="id31">5.2 Or, Build and Install Binaries From Source</a><ul class="auto-toc">
|
|
|
-<li><a class="reference" href="#get-bjam" id="id32">5.2.1 Get <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
|
|
|
-<li><a class="reference" href="#identify-your-toolset" id="id33">5.2.2 Identify Your Toolset</a></li>
|
|
|
-<li><a class="reference" href="#select-a-build-directory" id="id34">5.2.3 Select a Build Directory</a></li>
|
|
|
-<li><a class="reference" href="#invoke-bjam" id="id35">5.2.4 Invoke <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
|
|
|
+<li><a class="reference internal" href="#prepare-to-use-a-boost-library-binary" id="id29">5 Prepare to Use a Boost Library Binary</a><ul class="auto-toc">
|
|
|
+<li><a class="reference internal" href="#install-visual-studio-2005-or-net-2003-binaries" id="id30">5.1 Install Visual Studio (2005 or .NET 2003) Binaries</a></li>
|
|
|
+<li><a class="reference internal" href="#or-build-and-install-binaries-from-source" id="id31">5.2 Or, Build and Install Binaries From Source</a><ul class="auto-toc">
|
|
|
+<li><a class="reference internal" href="#get-bjam" id="id32">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="id33">5.2.2 Identify Your Toolset</a></li>
|
|
|
+<li><a class="reference internal" href="#select-a-build-directory" id="id34">5.2.3 Select a Build Directory</a></li>
|
|
|
+<li><a class="reference internal" href="#invoke-bjam" id="id35">5.2.4 Invoke <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
|
|
|
</ul>
|
|
|
</li>
|
|
|
-<li><a class="reference" href="#expected-build-output" id="id36">5.3 Expected Build Output</a></li>
|
|
|
-<li><a class="reference" href="#in-case-of-build-errors" id="id37">5.4 In Case of Build Errors</a></li>
|
|
|
+<li><a class="reference internal" href="#expected-build-output" id="id36">5.3 Expected Build Output</a></li>
|
|
|
+<li><a class="reference internal" href="#in-case-of-build-errors" id="id37">5.4 In Case of Build Errors</a></li>
|
|
|
</ul>
|
|
|
</li>
|
|
|
-<li><a class="reference" href="#link-your-program-to-a-boost-library" id="id38">6 Link Your Program to a Boost Library</a><ul class="auto-toc">
|
|
|
-<li><a class="reference" href="#link-from-within-the-visual-studio-ide" id="id39">6.1 Link From Within the Visual Studio IDE</a></li>
|
|
|
-<li><a class="reference" href="#or-link-from-the-command-prompt" id="id40">6.2 Or, Link From the Command Prompt</a></li>
|
|
|
-<li><a class="reference" href="#library-naming" id="id41">6.3 Library Naming</a></li>
|
|
|
-<li><a class="reference" href="#test-your-program" id="id42">6.4 Test Your Program</a></li>
|
|
|
+<li><a class="reference internal" href="#link-your-program-to-a-boost-library" id="id38">6 Link Your Program to a Boost Library</a><ul class="auto-toc">
|
|
|
+<li><a class="reference internal" href="#link-from-within-the-visual-studio-ide" id="id39">6.1 Link From Within the Visual Studio IDE</a></li>
|
|
|
+<li><a class="reference internal" href="#or-link-from-the-command-prompt" id="id40">6.2 Or, Link From the Command Prompt</a></li>
|
|
|
+<li><a class="reference internal" href="#library-naming" id="id41">6.3 Library Naming</a></li>
|
|
|
+<li><a class="reference internal" href="#test-your-program" id="id42">6.4 Test Your Program</a></li>
|
|
|
</ul>
|
|
|
</li>
|
|
|
-<li><a class="reference" href="#conclusion-and-further-resources" id="id43">7 Conclusion and Further Resources</a></li>
|
|
|
+<li><a class="reference internal" href="#conclusion-and-further-resources" id="id43">7 Conclusion and Further Resources</a></li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="section" id="get-boost">
|
|
|
<h1><a class="toc-backref" href="#id22">1 Get Boost</a></h1>
|
|
|
-<p>The easiest way to get a copy of Boost is to use the <a class="reference" href="http://www.boost-consulting.com/download/windows">installer</a>
|
|
|
-provided by <a class="reference" href="http://www.boost-consulting.com">Boost Consulting</a>. We especially recommend this
|
|
|
+<p>The easiest way to get a copy of Boost is to use the <a class="reference external" href="http://www.boost-consulting.com/download/windows">installer</a>
|
|
|
+provided by <a class="reference external" href="http://www.boost-consulting.com">Boost Consulting</a>. We especially recommend this
|
|
|
method if you use Microsoft Visual Studio .NET 2003 or Microsoft
|
|
|
Visual Studio 2005, because the installer can download and install
|
|
|
precompiled library binaries, saving you the trouble of building
|
|
|
them yourself. To complete this tutorial, you'll need to at least
|
|
|
-install the <a class="reference" href="../../libs/regex/index.html">Boost.Regex</a> binaries when given the option.</p>
|
|
|
+install the <a class="reference external" href="../../libs/regex/index.html">Boost.Regex</a> binaries when given the option.</p>
|
|
|
<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
|
|
|
-download <a class="reference" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041&release_id=376197"><tt class="docutils literal"><span class="pre">boost_1_34_0</span></tt><tt class="docutils literal"><span class="pre">.exe</span></tt></a> and run 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_34_0</span></tt><tt class="docutils literal"><span class="pre">.exe</span></tt></a> and run it to install a complete Boost
|
|
|
distribution.<a class="footnote-reference" href="#zip" id="id2"><sup>1</sup></a></p>
|
|
|
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
|
|
<!-- Software License, Version 1.0. (See accompanying -->
|
|
|
@@ -111,7 +111,7 @@ the Python library's <tt class="docutils literal"><span class="pre">def.hpp</spa
|
|
|
</li>
|
|
|
<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"><span class="pre">#include</span></tt>s all of the library's other headers. For
|
|
|
-example, <a class="reference" 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">
|
|
|
<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>
|
|
|
@@ -172,25 +172,25 @@ treatment when linking.</p>
|
|
|
<!-- .. _separate: -->
|
|
|
<p>The only Boost libraries that <em>must</em> be built separately are:</p>
|
|
|
<ul class="simple">
|
|
|
-<li><a class="reference" href="../../libs/filesystem/index.html">Boost.Filesystem</a></li>
|
|
|
-<li><a class="reference" href="../../libs/iostreams/index.html">Boost.IOStreams</a></li>
|
|
|
-<li><a class="reference" href="../../libs/program_options/index.html">Boost.ProgramOptions</a></li>
|
|
|
-<li><a class="reference" href="../../libs/python/doc/building.html">Boost.Python</a> (see the <a class="reference" href="../../libs/python/doc/building.html">Boost.Python build documentation</a>
|
|
|
+<li><a class="reference external" href="../../libs/filesystem/index.html">Boost.Filesystem</a></li>
|
|
|
+<li><a class="reference external" href="../../libs/iostreams/index.html">Boost.IOStreams</a></li>
|
|
|
+<li><a class="reference external" href="../../libs/program_options/index.html">Boost.ProgramOptions</a></li>
|
|
|
+<li><a class="reference external" href="../../libs/python/doc/building.html">Boost.Python</a> (see the <a class="reference external" href="../../libs/python/doc/building.html">Boost.Python build documentation</a>
|
|
|
before building and installing it)</li>
|
|
|
-<li><a class="reference" href="../../libs/regex/index.html">Boost.Regex</a></li>
|
|
|
-<li><a class="reference" href="../../libs/serialization/index.html">Boost.Serialization</a></li>
|
|
|
-<li><a class="reference" href="../../libs/signals/index.html">Boost.Signals</a></li>
|
|
|
-<li><a class="reference" href="../../libs/thread/index.html">Boost.Thread</a></li>
|
|
|
-<li><a class="reference" href="../../libs/wave/index.html">Boost.Wave</a></li>
|
|
|
+<li><a class="reference external" href="../../libs/regex/index.html">Boost.Regex</a></li>
|
|
|
+<li><a class="reference external" href="../../libs/serialization/index.html">Boost.Serialization</a></li>
|
|
|
+<li><a class="reference external" href="../../libs/signals/index.html">Boost.Signals</a></li>
|
|
|
+<li><a class="reference external" href="../../libs/thread/index.html">Boost.Thread</a></li>
|
|
|
+<li><a class="reference external" href="../../libs/wave/index.html">Boost.Wave</a></li>
|
|
|
</ul>
|
|
|
<p>A few libraries have optional separately-compiled binaries:</p>
|
|
|
<ul class="simple">
|
|
|
-<li><a class="reference" 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"><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>
|
|
|
-<li><a class="reference" href="../../libs/graph/index.html">Boost.Graph</a> also has a binary component that is only needed if
|
|
|
-you intend to <a class="reference" href="../../libs/graph/doc/read_graphviz.html">parse GraphViz files</a>.</li>
|
|
|
-<li><a class="reference" href="../../libs/test/index.html">Boost.Test</a> can be used in “header-only” or “separately compiled”
|
|
|
+<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>
|
|
|
+<li><a class="reference external" href="../../libs/test/index.html">Boost.Test</a> can be used in “header-only” or “separately compiled”
|
|
|
mode, although <strong>separate compilation is recommended for serious
|
|
|
use</strong>.</li>
|
|
|
</ul>
|
|
|
@@ -224,7 +224,7 @@ int main()
|
|
|
<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
|
|
|
Integrated Development Environment (IDE) like Visual Studio, or
|
|
|
-you can issue commands from the <a class="reference" href="#command-prompt">command prompt</a>. Since every
|
|
|
+you can issue commands from the <a class="reference internal" href="#command-prompt">command prompt</a>. Since every
|
|
|
IDE and compiler has different options and Microsoft's are by
|
|
|
far the dominant compilers on Windows, we only give specific
|
|
|
directions here for Visual Studio 2005 and .NET 2003 IDEs and
|
|
|
@@ -293,7 +293,7 @@ into the resulting window, followed by the Return key:</p>
|
|
|
</pre>
|
|
|
<p>Then hold down the control key and press "Z", followed by the
|
|
|
Return key.</p>
|
|
|
-<p><a class="reference" href="#errors-and-warnings"><em>skip to the next step</em></a></p>
|
|
|
+<p><a class="reference internal" href="#errors-and-warnings"><em>skip to the next step</em></a></p>
|
|
|
</div>
|
|
|
<div class="section" id="or-build-from-the-command-prompt">
|
|
|
<h2><a class="toc-backref" href="#id27">4.2 Or, Build From the Command Prompt</a></h2>
|
|
|
@@ -306,8 +306,8 @@ Studio 2005 user, select</p>
|
|
|
<blockquote>
|
|
|
<em>All Programs</em> > <em>Microsoft Visual Studio .NET 2003</em>
|
|
|
> <em>Visual Studio .NET Tools</em> > <em>Visual Studio .NET 2003 Command Prompt</em></blockquote>
|
|
|
-<p>to bring up a special <a class="reference" href="#command-prompt">command prompt</a> window set up for the
|
|
|
-Visual Studio compiler. In that window, set the <a class="reference" href="#current-directory">current
|
|
|
+<p>to bring up a special <a class="reference internal" href="#command-prompt">command prompt</a> window set up for the
|
|
|
+Visual Studio compiler. In that window, set the <a class="reference internal" href="#current-directory">current
|
|
|
directory</a> to a suitable location for creating some temporary
|
|
|
files and type the following command followed by the Return key:</p>
|
|
|
<pre class="literal-block">
|
|
|
@@ -327,8 +327,8 @@ echo 1 2 3 | example
|
|
|
headers. We try to eliminate them, but doing so isn't always
|
|
|
practical.<a class="footnote-reference" href="#warnings" id="id7"><sup>5</sup></a> <strong>Errors are another matter</strong>. If you're
|
|
|
seeing compilation errors at this point in the tutorial, check to
|
|
|
-be sure you've copied the <a class="reference" href="#build-a-simple-program-using-boost">example program</a> correctly and that you've
|
|
|
-correctly identified the <a class="reference" href="#boost-root-directory">Boost root directory</a>.</p>
|
|
|
+be sure you've copied the <a class="reference internal" href="#build-a-simple-program-using-boost">example program</a> correctly and that you've
|
|
|
+correctly identified the <a class="reference internal" href="#boost-root-directory">Boost root directory</a>.</p>
|
|
|
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
|
|
<!-- Software License, Version 1.0. (See accompanying -->
|
|
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
|
|
@@ -340,33 +340,33 @@ correctly identified the <a class="reference" href="#boost-root-directory">Boost
|
|
|
you'll need to acquire library binaries.</p>
|
|
|
<div class="section" id="install-visual-studio-2005-or-net-2003-binaries">
|
|
|
<h2><a class="toc-backref" href="#id30">5.1 Install Visual Studio (2005 or .NET 2003) Binaries</a></h2>
|
|
|
-<p>The <a class="reference" href="http://www.boost-consulting.com/download/windows">installer</a> supplied by Boost Consulting will download and
|
|
|
+<p>The <a class="reference external" href="http://www.boost-consulting.com/download/windows">installer</a> supplied by Boost Consulting will download and
|
|
|
install pre-compiled binaries into the <tt class="docutils literal"><span class="pre">lib\</span></tt> subdirectory of the
|
|
|
boost root, typically <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_34_0</span></tt><tt class="docutils literal"><span class="pre">\lib\</span></tt>. If you installed
|
|
|
-all variants of the <a class="reference" 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
|
|
|
now.</p>
|
|
|
-<p><a class="reference" 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 class="section" id="or-build-and-install-binaries-from-source">
|
|
|
<h2><a class="toc-backref" href="#id31">5.2 Or, Build and Install Binaries From Source</a></h2>
|
|
|
<p>If you're using an earlier version of Visual C++, or a compiler
|
|
|
-from another vendor, you'll need to use <a class="reference" href="../../tools/build/index.html">Boost.Build</a> to create your
|
|
|
+from another vendor, you'll need to use <a class="reference external" href="../../tools/build/index.html">Boost.Build</a> to create your
|
|
|
own binaries.</p>
|
|
|
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
|
|
<!-- Software License, Version 1.0. (See accompanying -->
|
|
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
|
|
-<p><a class="reference" 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
|
|
|
<tt class="docutils literal"><span class="pre">bjam</span></tt>.</p>
|
|
|
<!-- .. _Boost.Jam documentation: Boost.Jam_ -->
|
|
|
<div class="section" id="get-bjam">
|
|
|
<h3><a class="toc-backref" href="#id32">5.2.1 Get <tt class="docutils literal"><span class="pre">bjam</span></tt></a></h3>
|
|
|
-<p><tt class="docutils literal"><span class="pre">bjam</span></tt> is the <a class="reference" 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"><span class="pre">bjam</span></tt> from the
|
|
|
Boost root.</p>
|
|
|
-<p>Boost provides <a class="reference" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941">pre-compiled <tt class="docutils literal"><span class="pre">bjam</span></tt> executables</a> for a variety of platforms.
|
|
|
-Alternatively, you can build <tt class="docutils literal"><span class="pre">bjam</span></tt> yourself using <a class="reference" href="../../doc/html/jam/building.html">these
|
|
|
+<p>Boost provides <a class="reference external" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941">pre-compiled <tt class="docutils literal"><span class="pre">bjam</span></tt> executables</a> for a variety of platforms.
|
|
|
+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>
|
|
|
</div>
|
|
|
<div class="section" id="identify-your-toolset">
|
|
|
@@ -399,7 +399,7 @@ known to work well with Boost</td>
|
|
|
<tr><td><tt class="docutils literal"><span class="pre">como</span></tt></td>
|
|
|
<td>Comeau Computing</td>
|
|
|
<td>Using this toolset may
|
|
|
-require <a class="reference" 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>
|
|
|
</tr>
|
|
|
<tr><td><tt class="docutils literal"><span class="pre">cw</span></tt></td>
|
|
|
@@ -473,7 +473,7 @@ toolset from the table.</p>
|
|
|
</div>
|
|
|
<div class="section" id="select-a-build-directory">
|
|
|
<span id="id12"></span><span id="build-directory"></span><h3><a class="toc-backref" href="#id34">5.2.3 Select a Build Directory</a></h3>
|
|
|
-<p><a class="reference" 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
|
|
|
directory is writable, this step isn't strictly necessary: by
|
|
|
default Boost.Build will create a <tt class="docutils literal"><span class="pre">bin.v2/</span></tt> subdirectory for that
|
|
|
@@ -484,7 +484,7 @@ purpose in your current working directory.</p>
|
|
|
<p>Change your current directory to the Boost root directory and
|
|
|
invoke <tt class="docutils literal"><span class="pre">bjam</span></tt> as follows:</p>
|
|
|
<pre class="literal-block">
|
|
|
-bjam <strong>--build-dir=</strong><a class="reference" href="#id12"><em>build-directory</em></a> <strong>--toolset=</strong><a class="reference" href="#toolset-name"><em>toolset-name</em></a> stage
|
|
|
+bjam <strong>--build-dir=</strong><a class="reference internal" href="#id12"><em>build-directory</em></a> <strong>--toolset=</strong><a class="reference internal" href="#toolset-name"><em>toolset-name</em></a> stage
|
|
|
</pre>
|
|
|
<p>For example, your session might look like this:<a class="footnote-reference" href="#continuation" id="id13"><sup>4</sup></a></p>
|
|
|
<pre class="literal-block">
|
|
|
@@ -497,7 +497,7 @@ More? <strong>--toolset=</strong>msvc stage
|
|
|
<!-- Software License, Version 1.0. (See accompanying -->
|
|
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
|
|
<p>Boost.Build will place the Boost binaries in the <tt class="docutils literal"><span class="pre">stage</span></tt><tt class="docutils literal"><span class="pre">\</span></tt>
|
|
|
-subdirectory of your <a class="reference" href="#build-directory">build directory</a>.</p>
|
|
|
+subdirectory of your <a class="reference internal" href="#build-directory">build directory</a>.</p>
|
|
|
<div class="note">
|
|
|
<p class="first admonition-title">Note</p>
|
|
|
<p class="last"><tt class="docutils literal"><span class="pre">bjam</span></tt> is case-sensitive; it is important that all the
|
|
|
@@ -546,15 +546,15 @@ look something like:</p>
|
|
|
<h2><a class="toc-backref" href="#id37">5.4 In Case of Build Errors</a></h2>
|
|
|
<p>The only error messages you see when building Boost—if any—should
|
|
|
be related to the IOStreams library's support of zip and bzip2
|
|
|
-formats as described <a class="reference" href="../../libs/iostreams/doc/installation.html">here</a>. Install the relevant development
|
|
|
+formats as described <a class="reference external" href="../../libs/iostreams/doc/installation.html">here</a>. Install the relevant development
|
|
|
packages for libz and libbz2 if you need those features. Other
|
|
|
errors when building Boost libraries are cause for concern.</p>
|
|
|
<p>If it seems like the build system can't find your compiler and/or
|
|
|
linker, consider setting up a <tt class="docutils literal"><span class="pre">user-config.jam</span></tt> file as described
|
|
|
-in the <a class="reference" href="../../tools/build/index.html">Boost.Build documentation</a>. If that isn't your problem or
|
|
|
+in the <a class="reference external" href="../../tools/build/index.html">Boost.Build documentation</a>. If that isn't your problem or
|
|
|
the <tt class="docutils literal"><span class="pre">user-config.jam</span></tt> file doesn't work for you, please address
|
|
|
questions about configuring Boost for your compiler to the
|
|
|
-<a class="reference" href="../../more/mailing_lists.htm#jamboost">Boost.Build mailing list</a>.</p>
|
|
|
+<a class="reference external" href="../../more/mailing_lists.htm#jamboost">Boost.Build mailing list</a>.</p>
|
|
|
<!-- Copyright David Abrahams 2006. Distributed under the Boost -->
|
|
|
<!-- Software License, Version 1.0. (See accompanying -->
|
|
|
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
|
|
|
@@ -564,7 +564,7 @@ questions about configuring Boost for your compiler to the
|
|
|
<h1><a class="toc-backref" href="#id38">6 Link Your Program to a Boost Library</a></h1>
|
|
|
<p>To demonstrate linking with a Boost binary library, we'll use the
|
|
|
following simple program that extracts the subject lines from
|
|
|
-emails. It uses the <a class="reference" href="../../libs/regex/index.html">Boost.Regex</a> library, which has a
|
|
|
+emails. It uses the <a class="reference external" href="../../libs/regex/index.html">Boost.Regex</a> library, which has a
|
|
|
separately-compiled binary component.</p>
|
|
|
<pre class="literal-block">
|
|
|
#include <boost/regex.hpp>
|
|
|
@@ -604,7 +604,7 @@ the directories you've told it to search.</p>
|
|
|
</div>
|
|
|
<div class="section" id="link-from-within-the-visual-studio-ide">
|
|
|
<h2><a class="toc-backref" href="#id39">6.1 Link From Within the Visual Studio IDE</a></h2>
|
|
|
-<p>Starting with the <a class="reference" href="#vs-header-only">header-only example project</a> we created
|
|
|
+<p>Starting with the <a class="reference internal" href="#vs-header-only">header-only example project</a> we created
|
|
|
earlier:</p>
|
|
|
<ol class="arabic simple">
|
|
|
<li>Right-click <strong>example</strong> in the <em>Solution Explorer</em> pane and
|
|
|
@@ -614,7 +614,7 @@ Directories</em>, enter the path to the Boost binaries,
|
|
|
e.g. <tt class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">Files\boost\</span></tt><tt class="docutils literal"><span class="pre">boost_1_34_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>
|
|
|
</ol>
|
|
|
-<p><a class="reference" 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>
|
|
|
</div>
|
|
|
<div class="section" id="or-link-from-the-command-prompt">
|
|
|
<h2><a class="toc-backref" href="#id40">6.2 Or, Link From the Command Prompt</a></h2>
|
|
|
@@ -632,7 +632,7 @@ cl /EHsc /I <em>path\to\</em><tt class="docutils literal"><span class="pre">boos
|
|
|
<div class="note">
|
|
|
<p class="first admonition-title">Note</p>
|
|
|
<p>If, like Visual C++, your compiler supports auto-linking,
|
|
|
-you can probably <a class="reference" href="#test-your-program"><em>skip to the next step</em></a>.</p>
|
|
|
+you can probably <a class="reference internal" href="#test-your-program"><em>skip to the next step</em></a>.</p>
|
|
|
<blockquote class="last">
|
|
|
</blockquote>
|
|
|
</div>
|
|
|
@@ -654,7 +654,7 @@ not.<a class="footnote-reference" href="#distinct" id="id18"><sup>6</sup></a></d
|
|
|
<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"><span class="pre">boost_</span></tt>.</dd>
|
|
|
<dt><tt class="docutils literal"><span class="pre">-vc71</span></tt></dt>
|
|
|
-<dd><em>Toolset tag</em>: identifies the <a class="reference" 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>
|
|
|
<dt><tt class="docutils literal"><span class="pre">-mt</span></tt></dt>
|
|
|
<dd><em>Threading tag</em>: indicates that the library was
|
|
|
@@ -685,7 +685,7 @@ libraries.</td>
|
|
|
<td>using debug versions of the standard and runtime support libraries.</td>
|
|
|
</tr>
|
|
|
<tr><td><tt class="docutils literal"><span class="pre">y</span></tt></td>
|
|
|
-<td>using a special <a class="reference" 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>
|
|
|
</tr>
|
|
|
<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="id19"><sup>7</sup></a></td>
|
|
|
@@ -716,7 +716,7 @@ convention. On most unix-style platforms the extensions are
|
|
|
<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"><span class="pre">.dll</span></tt> indicates a shared
|
|
|
library and (except for static libraries built by the <tt class="docutils literal"><span class="pre">gcc</span></tt>
|
|
|
-<a class="reference" href="#toolset">toolset</a>, whose names always end in <tt class="docutils literal"><span class="pre">.a</span></tt>) <tt class="docutils literal"><span class="pre">.lib</span></tt> indicates a
|
|
|
+<a class="reference internal" href="#toolset">toolset</a>, whose names always end in <tt class="docutils literal"><span class="pre">.a</span></tt>) <tt class="docutils literal"><span class="pre">.lib</span></tt> indicates a
|
|
|
static or import library. Where supported by toolsets on unix
|
|
|
variants, a full version extension is added (e.g. ".so.1.34") and
|
|
|
a symbolic link to the library file, named without the trailing
|
|
|
@@ -738,7 +738,7 @@ Subject: Will Success Spoil Rock Hunter?
|
|
|
---
|
|
|
See subject.
|
|
|
</pre>
|
|
|
-<p>Now, in a <a class="reference" href="#command-prompt">command prompt</a> window, type:</p>
|
|
|
+<p>Now, in a <a class="reference internal" href="#command-prompt">command prompt</a> window, type:</p>
|
|
|
<pre class="literal-block">
|
|
|
<em>path</em>\<em>to</em>\<em>compiled</em>\example < <em>path</em>\<em>to</em>\jayne.txt
|
|
|
</pre>
|
|
|
@@ -757,15 +757,15 @@ surely a few additional points you'll wish we had covered. One day
|
|
|
we may have a “Book 2 in the Getting Started series” that addresses
|
|
|
them. Until then, we suggest you pursue the following resources.
|
|
|
If you can't find what you need, or there's anything we can do to
|
|
|
-make this document clearer, please post it to the <a class="reference" href="../../more/mailing_lists.htm#users">Boost Users'
|
|
|
+make this document clearer, please post it to the <a class="reference external" href="../../more/mailing_lists.htm#users">Boost Users'
|
|
|
mailing list</a>.</p>
|
|
|
<ul class="simple">
|
|
|
-<li><a class="reference" href="../../tools/build/v2">Boost.Build reference manual</a></li>
|
|
|
-<li><a class="reference" href="../../tools/jam/index.html">Boost.Jam reference manual</a></li>
|
|
|
-<li><a class="reference" href="../../more/mailing_lists.htm#users">Boost Users' mailing list</a></li>
|
|
|
-<li><a class="reference" href="../../more/mailing_lists.htm#jamboost">Boost.Build mailing list</a></li>
|
|
|
-<li><a class="reference" href="http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Boost.Build_V2">Boost.Build Wiki</a></li>
|
|
|
-<li><a class="reference" href="../../libs/index.html">Index of all Boost library documentation</a></li>
|
|
|
+<li><a class="reference external" href="../../tools/build/v2">Boost.Build reference manual</a></li>
|
|
|
+<li><a class="reference external" href="../../tools/jam/index.html">Boost.Jam reference manual</a></li>
|
|
|
+<li><a class="reference external" href="../../more/mailing_lists.htm#users">Boost Users' mailing list</a></li>
|
|
|
+<li><a class="reference external" href="../../more/mailing_lists.htm#jamboost">Boost.Build mailing list</a></li>
|
|
|
+<li><a class="reference external" href="http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Boost.Build_V2">Boost.Build Wiki</a></li>
|
|
|
+<li><a class="reference external" href="../../libs/index.html">Index of all Boost library documentation</a></li>
|
|
|
</ul>
|
|
|
<div class="admonition-onward admonition">
|
|
|
<p class="first admonition-title">Onward</p>
|
|
|
@@ -779,7 +779,7 @@ mailing list</a>.</p>
|
|
|
<colgroup><col class="label" /><col /></colgroup>
|
|
|
<tbody valign="top">
|
|
|
<tr><td class="label"><a class="fn-backref" href="#id2">[1]</a></td><td>If you prefer not to download executable programs,
|
|
|
-download <a class="reference" href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041&release_id=376197"><tt class="docutils literal"><span class="pre">boost_1_34_0</span></tt><tt class="docutils literal"><span class="pre">.zip</span></tt></a> and use an external tool to decompress
|
|
|
+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_34_0</span></tt><tt class="docutils literal"><span class="pre">.zip</span></tt></a> and use an external tool to decompress
|
|
|
it. We don't recommend using Windows' built-in decompression as
|
|
|
it can be painfully slow for large archives.</td></tr>
|
|
|
</tbody>
|
|
|
@@ -787,7 +787,7 @@ it can be painfully slow for large archives.</td></tr>
|
|
|
<table class="docutils footnote" frame="void" id="installer-src" rules="none">
|
|
|
<colgroup><col class="label" /><col /></colgroup>
|
|
|
<tbody valign="top">
|
|
|
-<tr><td class="label">[2]</td><td>If you used the <a class="reference" href="http://www.boost-consulting.com/download/windows">installer</a> from Boost
|
|
|
+<tr><td class="label">[2]</td><td>If you used the <a class="reference external" href="http://www.boost-consulting.com/download/windows">installer</a> from Boost
|
|
|
Consulting and deselected “Source and Documentation” (it's
|
|
|
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
|