Ticket #958: getting-started.patch

File getting-started.patch, 28.4 KB (added by Dave Abrahams, 15 years ago)

Patch for getting started docs that fixes library naming and a complaint from Scott Meyers

  • more/getting_started/unix-variants.html

    cvs diff: Diffing more
    cvs diff: Diffing more/css_0
    cvs diff: Diffing more/getting_started
    RCS file: /cvsroot/boost/boost/more/getting_started/unix-variants.html,v
    retrieving revision 1.4.2.4
    diff -d -d -u -r1.4.2.4 unix-variants.html
     
    534534<li><p class="first">You can specify the full path to each library:</p>
    535535<pre class="literal-block">
    536536$ c++ -I <em>path/to/</em><tt class="docutils literal"><span class="pre">boost_1_34_0</span></tt> example.cpp -o example <strong>\</strong>
    537    <strong>~/boost/lib/libboost_regex-gcc-3.4-mt-d-1_34.a</strong>
     537   <strong>~/boost/lib/libboost_regex-gcc34-mt-d-1_34.a</strong>
    538538</pre>
    539539</li>
    540540<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="id12"><sup>2</sup></a> dropping the filename's leading <tt class="docutils literal"><span class="pre">lib</span></tt> and trailing
    541541suffix (<tt class="docutils literal"><span class="pre">.a</span></tt> in this case):</p>
    542542<pre class="literal-block">
    543543$ c++ -I <em>path/to/</em><tt class="docutils literal"><span class="pre">boost_1_34_0</span></tt> example.cpp -o example <strong>\</strong>
    544    <strong>-L~/boost/lib/ -lboost_regex-gcc-3.4-mt-d-1_34</strong>
     544   <strong>-L~/boost/lib/ -lboost_regex-gcc34-mt-d-1_34</strong>
    545545</pre>
    546546<p>As you can see, this method is just as terse as method A for one
    547547library; it <em>really</em> pays off when you're using multiple
  • more/getting_started/unix-variants.rst

    RCS file: /cvsroot/boost/boost/more/getting_started/unix-variants.rst,v
    retrieving revision 1.1.2.2
    diff -d -d -u -r1.1.2.2 unix-variants.rst
     
    153153   .. parsed-literal::
    154154
    155155     $ c++ -I |root| example.cpp -o example **\\**
    156         **~/boost/lib/libboost_regex-gcc-3.4-mt-d-1_34.a**
     156        **~/boost/lib/libboost_regex-gcc34-mt-d-1_34.a**
    157157
    158158B. You can separately specify a directory to search (with ``-L``\
    159159   *directory*) and a library name to search for (with ``-l``\
     
    163163   .. parsed-literal::
    164164
    165165     $ c++ -I |root| example.cpp -o example **\\**
    166         **-L~/boost/lib/ -lboost_regex-gcc-3.4-mt-d-1_34**
     166        **-L~/boost/lib/ -lboost_regex-gcc34-mt-d-1_34**
    167167
    168168   As you can see, this method is just as terse as method A for one
    169169   library; it *really* pays off when you're using multiple
  • more/getting_started/windows.html

    RCS file: /cvsroot/boost/boost/more/getting_started/windows.html,v
    retrieving revision 1.4.2.4
    diff -d -d -u -r1.4.2.4 windows.html
     
    2626<div class="contents topic" id="index">
    2727<p class="topic-title first">Index</p>
    2828<ul class="auto-toc simple">
    29 <li><a class="reference internal" href="#get-boost" id="id22">1&nbsp;&nbsp;&nbsp;Get Boost</a></li>
    30 <li><a class="reference internal" href="#the-boost-distribution" id="id23">2&nbsp;&nbsp;&nbsp;The Boost Distribution</a></li>
    31 <li><a class="reference internal" href="#header-only-libraries" id="id24">3&nbsp;&nbsp;&nbsp;Header-Only Libraries</a></li>
    32 <li><a class="reference internal" href="#build-a-simple-program-using-boost" id="id25">4&nbsp;&nbsp;&nbsp;Build a Simple Program Using Boost</a><ul class="auto-toc">
    33 <li><a class="reference internal" href="#build-from-the-visual-studio-ide" id="id26">4.1&nbsp;&nbsp;&nbsp;Build From the Visual Studio IDE</a></li>
    34 <li><a class="reference internal" href="#or-build-from-the-command-prompt" id="id27">4.2&nbsp;&nbsp;&nbsp;Or, Build From the Command Prompt</a></li>
    35 <li><a class="reference internal" href="#errors-and-warnings" id="id28">4.3&nbsp;&nbsp;&nbsp;Errors and Warnings</a></li>
     29<li><a class="reference internal" href="#get-boost" id="id23">1&nbsp;&nbsp;&nbsp;Get Boost</a></li>
     30<li><a class="reference internal" href="#the-boost-distribution" id="id24">2&nbsp;&nbsp;&nbsp;The Boost Distribution</a></li>
     31<li><a class="reference internal" href="#header-only-libraries" id="id25">3&nbsp;&nbsp;&nbsp;Header-Only Libraries</a></li>
     32<li><a class="reference internal" href="#build-a-simple-program-using-boost" id="id26">4&nbsp;&nbsp;&nbsp;Build a Simple Program Using Boost</a><ul class="auto-toc">
     33<li><a class="reference internal" href="#build-from-the-visual-studio-ide" id="id27">4.1&nbsp;&nbsp;&nbsp;Build From the Visual Studio IDE</a></li>
     34<li><a class="reference internal" href="#or-build-from-the-command-prompt" id="id28">4.2&nbsp;&nbsp;&nbsp;Or, Build From the Command Prompt</a></li>
     35<li><a class="reference internal" href="#errors-and-warnings" id="id29">4.3&nbsp;&nbsp;&nbsp;Errors and Warnings</a></li>
    3636</ul>
    3737</li>
    38 <li><a class="reference internal" href="#prepare-to-use-a-boost-library-binary" id="id29">5&nbsp;&nbsp;&nbsp;Prepare to Use a Boost Library Binary</a><ul class="auto-toc">
    39 <li><a class="reference internal" href="#install-visual-studio-2005-or-net-2003-binaries" id="id30">5.1&nbsp;&nbsp;&nbsp;Install Visual Studio (2005 or .NET 2003) Binaries</a></li>
    40 <li><a class="reference internal" href="#or-build-binaries-from-source" id="id31">5.2&nbsp;&nbsp;&nbsp;Or, Build Binaries From Source</a><ul class="auto-toc">
    41 <li><a class="reference internal" href="#get-bjam" id="id32">5.2.1&nbsp;&nbsp;&nbsp;Get <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
    42 <li><a class="reference internal" href="#identify-your-toolset" id="id33">5.2.2&nbsp;&nbsp;&nbsp;Identify Your Toolset</a></li>
    43 <li><a class="reference internal" href="#select-a-build-directory" id="id34">5.2.3&nbsp;&nbsp;&nbsp;Select a Build Directory</a></li>
    44 <li><a class="reference internal" href="#invoke-bjam" id="id35">5.2.4&nbsp;&nbsp;&nbsp;Invoke <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
     38<li><a class="reference internal" href="#prepare-to-use-a-boost-library-binary" id="id30">5&nbsp;&nbsp;&nbsp;Prepare to Use a Boost Library Binary</a><ul class="auto-toc">
     39<li><a class="reference internal" href="#install-visual-studio-2005-or-net-2003-binaries" id="id31">5.1&nbsp;&nbsp;&nbsp;Install Visual Studio (2005 or .NET 2003) Binaries</a></li>
     40<li><a class="reference internal" href="#or-build-binaries-from-source" id="id32">5.2&nbsp;&nbsp;&nbsp;Or, Build Binaries From Source</a><ul class="auto-toc">
     41<li><a class="reference internal" href="#get-bjam" id="id33">5.2.1&nbsp;&nbsp;&nbsp;Get <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
     42<li><a class="reference internal" href="#identify-your-toolset" id="id34">5.2.2&nbsp;&nbsp;&nbsp;Identify Your Toolset</a></li>
     43<li><a class="reference internal" href="#select-a-build-directory" id="id35">5.2.3&nbsp;&nbsp;&nbsp;Select a Build Directory</a></li>
     44<li><a class="reference internal" href="#invoke-bjam" id="id36">5.2.4&nbsp;&nbsp;&nbsp;Invoke <tt class="docutils literal"><span class="pre">bjam</span></tt></a></li>
    4545</ul>
    4646</li>
    47 <li><a class="reference internal" href="#expected-build-output" id="id36">5.3&nbsp;&nbsp;&nbsp;Expected Build Output</a></li>
    48 <li><a class="reference internal" href="#in-case-of-build-errors" id="id37">5.4&nbsp;&nbsp;&nbsp;In Case of Build Errors</a></li>
     47<li><a class="reference internal" href="#expected-build-output" id="id37">5.3&nbsp;&nbsp;&nbsp;Expected Build Output</a></li>
     48<li><a class="reference internal" href="#in-case-of-build-errors" id="id38">5.4&nbsp;&nbsp;&nbsp;In Case of Build Errors</a></li>
    4949</ul>
    5050</li>
    51 <li><a class="reference internal" href="#link-your-program-to-a-boost-library" id="id38">6&nbsp;&nbsp;&nbsp;Link Your Program to a Boost Library</a><ul class="auto-toc">
    52 <li><a class="reference internal" href="#link-from-within-the-visual-studio-ide" id="id39">6.1&nbsp;&nbsp;&nbsp;Link From Within the Visual Studio IDE</a></li>
    53 <li><a class="reference internal" href="#or-link-from-the-command-prompt" id="id40">6.2&nbsp;&nbsp;&nbsp;Or, Link From the Command Prompt</a></li>
    54 <li><a class="reference internal" href="#library-naming" id="id41">6.3&nbsp;&nbsp;&nbsp;Library Naming</a></li>
    55 <li><a class="reference internal" href="#test-your-program" id="id42">6.4&nbsp;&nbsp;&nbsp;Test Your Program</a></li>
     51<li><a class="reference internal" href="#link-your-program-to-a-boost-library" id="id39">6&nbsp;&nbsp;&nbsp;Link Your Program to a Boost Library</a><ul class="auto-toc">
     52<li><a class="reference internal" href="#link-from-within-the-visual-studio-ide" id="id40">6.1&nbsp;&nbsp;&nbsp;Link From Within the Visual Studio IDE</a></li>
     53<li><a class="reference internal" href="#or-link-from-the-command-prompt" id="id41">6.2&nbsp;&nbsp;&nbsp;Or, Link From the Command Prompt</a></li>
     54<li><a class="reference internal" href="#library-naming" id="id42">6.3&nbsp;&nbsp;&nbsp;Library Naming</a></li>
     55<li><a class="reference internal" href="#test-your-program" id="id43">6.4&nbsp;&nbsp;&nbsp;Test Your Program</a></li>
    5656</ul>
    5757</li>
    58 <li><a class="reference internal" href="#conclusion-and-further-resources" id="id43">7&nbsp;&nbsp;&nbsp;Conclusion and Further Resources</a></li>
     58<li><a class="reference internal" href="#conclusion-and-further-resources" id="id44">7&nbsp;&nbsp;&nbsp;Conclusion and Further Resources</a></li>
    5959</ul>
    6060</div>
    6161<div class="section" id="get-boost">
    62 <h1><a class="toc-backref" href="#id22">1&nbsp;&nbsp;&nbsp;Get Boost</a></h1>
     62<h1><a class="toc-backref" href="#id23">1&nbsp;&nbsp;&nbsp;Get Boost</a></h1>
    6363<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>
    6464provided by <a class="reference external" href="http://www.boost-consulting.com">Boost Consulting</a>.  We especially recommend this
    6565method if you use Microsoft Visual Studio .NET 2003 or Microsoft
     
    7676<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
    7777</div>
    7878<div class="section" id="the-boost-distribution">
    79 <h1><a class="toc-backref" href="#id23">2&nbsp;&nbsp;&nbsp;The Boost Distribution</a></h1>
     79<h1><a class="toc-backref" href="#id24">2&nbsp;&nbsp;&nbsp;The Boost Distribution</a></h1>
    8080<p>This is a sketch of the resulting directory structure:</p>
    8181<pre class="literal-block">
    8282<strong>boost_1_34_0</strong><strong>\</strong> .................<em>The “boost root directory”</em>
     
    159159<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
    160160</div>
    161161<div class="section" id="header-only-libraries">
    162 <h1><a class="toc-backref" href="#id24">3&nbsp;&nbsp;&nbsp;Header-Only Libraries</a></h1>
     162<h1><a class="toc-backref" href="#id25">3&nbsp;&nbsp;&nbsp;Header-Only Libraries</a></h1>
    163163<p>The first thing many people want to know is, “how do I build
    164164Boost?”  The good news is that often, there's nothing to build.</p>
    165165<div class="admonition-nothing-to-build admonition">
     
    199199<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
    200200</div>
    201201<div class="section" id="build-a-simple-program-using-boost">
    202 <h1><a class="toc-backref" href="#id25">4&nbsp;&nbsp;&nbsp;Build a Simple Program Using Boost</a></h1>
     202<h1><a class="toc-backref" href="#id26">4&nbsp;&nbsp;&nbsp;Build a Simple Program Using Boost</a></h1>
    203203<p>To keep things simple, let's start by using a header-only library.
    204204The following program reads a sequence of integers from standard
    205205input, uses Boost.Lambda to multiply each number by three, and
     
    255255on this page use that technique to save horizontal space.</p>
    256256</div>
    257257<div class="section" id="build-from-the-visual-studio-ide">
    258 <span id="vs-header-only"></span><h2><a class="toc-backref" href="#id26">4.1&nbsp;&nbsp;&nbsp;Build From the Visual Studio IDE</a></h2>
     258<span id="vs-header-only"></span><h2><a class="toc-backref" href="#id27">4.1&nbsp;&nbsp;&nbsp;Build From the Visual Studio IDE</a></h2>
    259259<ul>
    260260<li><p class="first">From Visual Studio's <em>File</em> menu, select <em>New</em> &gt; <em>Project…</em></p>
    261261</li>
     
    296296<p><a class="reference internal" href="#errors-and-warnings"><em>skip to the next step</em></a></p>
    297297</div>
    298298<div class="section" id="or-build-from-the-command-prompt">
    299 <h2><a class="toc-backref" href="#id27">4.2&nbsp;&nbsp;&nbsp;Or, Build From the Command Prompt</a></h2>
     299<h2><a class="toc-backref" href="#id28">4.2&nbsp;&nbsp;&nbsp;Or, Build From the Command Prompt</a></h2>
    300300<p>From your computer's <em>Start</em> menu, if you are a Visual
    301301Studio 2005 user, select</p>
    302302<blockquote>
     
    322322<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
    323323</div>
    324324<div class="section" id="errors-and-warnings">
    325 <h2><a class="toc-backref" href="#id28">4.3&nbsp;&nbsp;&nbsp;Errors and Warnings</a></h2>
     325<h2><a class="toc-backref" href="#id29">4.3&nbsp;&nbsp;&nbsp;Errors and Warnings</a></h2>
    326326<p>Don't be alarmed if you see compiler warnings originating in Boost
    327327headers.  We try to eliminate them, but doing so isn't always
    328328practical.<a class="footnote-reference" href="#warnings" id="id7"><sup>5</sup></a> <strong>Errors are another matter</strong>.  If you're
     
    335335</div>
    336336</div>
    337337<div class="section" id="prepare-to-use-a-boost-library-binary">
    338 <h1><a class="toc-backref" href="#id29">5&nbsp;&nbsp;&nbsp;Prepare to Use a Boost Library Binary</a></h1>
     338<h1><a class="toc-backref" href="#id30">5&nbsp;&nbsp;&nbsp;Prepare to Use a Boost Library Binary</a></h1>
    339339<p>If you want to use any of the separately-compiled Boost libraries,
    340340you'll need to acquire library binaries.</p>
    341341<div class="section" id="install-visual-studio-2005-or-net-2003-binaries">
    342 <h2><a class="toc-backref" href="#id30">5.1&nbsp;&nbsp;&nbsp;Install Visual Studio (2005 or .NET 2003) Binaries</a></h2>
     342<h2><a class="toc-backref" href="#id31">5.1&nbsp;&nbsp;&nbsp;Install Visual Studio (2005 or .NET 2003) Binaries</a></h2>
    343343<p>The <a class="reference external" href="http://www.boost-consulting.com/download/windows">installer</a> supplied by Boost Consulting will download and
    344344install pre-compiled binaries into the <tt class="docutils literal"><span class="pre">lib\</span></tt> subdirectory of the
    345345boost 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
     
    349349<p><a class="reference internal" href="#link-your-program-to-a-boost-library"><em>skip to the next step</em></a></p>
    350350</div>
    351351<div class="section" id="or-build-binaries-from-source">
    352 <h2><a class="toc-backref" href="#id31">5.2&nbsp;&nbsp;&nbsp;Or, Build Binaries From Source</a></h2>
     352<h2><a class="toc-backref" href="#id32">5.2&nbsp;&nbsp;&nbsp;Or, Build Binaries From Source</a></h2>
    353353<p>If you're using an earlier version of Visual C++, or a compiler
    354354from another vendor, you'll need to use <a class="reference external" href="../../tools/build/index.html">Boost.Build</a> to create your
    355355own binaries.</p>
     
    361361<tt class="docutils literal"><span class="pre">bjam</span></tt>.</p>
    362362<!-- .. _Boost.Jam documentation: Boost.Jam_ -->
    363363<div class="section" id="get-bjam">
    364 <h3><a class="toc-backref" href="#id32">5.2.1&nbsp;&nbsp;&nbsp;Get <tt class="docutils literal"><span class="pre">bjam</span></tt></a></h3>
     364<h3><a class="toc-backref" href="#id33">5.2.1&nbsp;&nbsp;&nbsp;Get <tt class="docutils literal"><span class="pre">bjam</span></tt></a></h3>
    365365<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
    366366system.  To build Boost binaries, you'll invoke <tt class="docutils literal"><span class="pre">bjam</span></tt> from the
    367367Boost root.</p>
     
    370370instructions</a>.</p>
    371371</div>
    372372<div class="section" id="identify-your-toolset">
    373 <span id="toolset-name"></span><span id="toolset"></span><h3><a class="toc-backref" href="#id33">5.2.2&nbsp;&nbsp;&nbsp;Identify Your Toolset</a></h3>
     373<span id="toolset-name"></span><span id="toolset"></span><h3><a class="toc-backref" href="#id34">5.2.2&nbsp;&nbsp;&nbsp;Identify Your Toolset</a></h3>
    374374<p>First, find the toolset corresponding to your compiler in the
    375375following table.</p>
    376376<div class="note">
     
    475475detection code) or <a class="reference internal" href="#auto-linking">auto-linking</a> will fail.</p>
    476476</div>
    477477<div class="section" id="select-a-build-directory">
    478 <span id="id12"></span><span id="build-directory"></span><h3><a class="toc-backref" href="#id34">5.2.3&nbsp;&nbsp;&nbsp;Select a Build Directory</a></h3>
     478<span id="id12"></span><span id="build-directory"></span><h3><a class="toc-backref" href="#id35">5.2.3&nbsp;&nbsp;&nbsp;Select a Build Directory</a></h3>
    479479<p><a class="reference external" href="../../tools/build/index.html">Boost.Build</a> will place all intermediate files it generates while
    480480building into the <strong>build directory</strong>.  If your Boost root
    481481directory is writable, this step isn't strictly necessary: by
     
    483483purpose in your current working directory.</p>
    484484</div>
    485485<div class="section" id="invoke-bjam">
    486 <h3><a class="toc-backref" href="#id35">5.2.4&nbsp;&nbsp;&nbsp;Invoke <tt class="docutils literal"><span class="pre">bjam</span></tt></a></h3>
     486<h3><a class="toc-backref" href="#id36">5.2.4&nbsp;&nbsp;&nbsp;Invoke <tt class="docutils literal"><span class="pre">bjam</span></tt></a></h3>
    487487<p>Change your current directory to the Boost root directory and
    488488invoke <tt class="docutils literal"><span class="pre">bjam</span></tt> as follows:</p>
    489489<pre class="literal-block">
     
    491491</pre>
    492492<p>For example, your session might look like this:<a class="footnote-reference" href="#continuation" id="id13"><sup>4</sup></a></p>
    493493<pre class="literal-block">
    494 C:WINDOWS&gt; 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_34_0</span></tt>
     494C:\WINDOWS&gt; 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_34_0</span></tt>
    495495<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>&gt; bjam <strong>^</strong>
    496496More? <strong>--build-dir=</strong>%TEMP%\build-boost <strong>^</strong>
    497497More? <strong>--toolset=</strong>msvc stage
     
    523523</div>
    524524</div>
    525525<div class="section" id="expected-build-output">
    526 <h2><a class="toc-backref" href="#id36">5.3&nbsp;&nbsp;&nbsp;Expected Build Output</a></h2>
     526<h2><a class="toc-backref" href="#id37">5.3&nbsp;&nbsp;&nbsp;Expected Build Output</a></h2>
    527527<p>During the process of building Boost libraries, you can expect to
    528528see some messages printed on the console.  These may include</p>
    529529<ul>
     
    547547</ul>
    548548</div>
    549549<div class="section" id="in-case-of-build-errors">
    550 <h2><a class="toc-backref" href="#id37">5.4&nbsp;&nbsp;&nbsp;In Case of Build Errors</a></h2>
     550<h2><a class="toc-backref" href="#id38">5.4&nbsp;&nbsp;&nbsp;In Case of Build Errors</a></h2>
    551551<p>The only error messages you see when building Boost—if any—should
    552552be related to the IOStreams library's support of zip and bzip2
    553553formats as described <a class="reference external" href="../../libs/iostreams/doc/installation.html">here</a>.  Install the relevant development
     
    565565</div>
    566566</div>
    567567<div class="section" id="link-your-program-to-a-boost-library">
    568 <h1><a class="toc-backref" href="#id38">6&nbsp;&nbsp;&nbsp;Link Your Program to a Boost Library</a></h1>
     568<h1><a class="toc-backref" href="#id39">6&nbsp;&nbsp;&nbsp;Link Your Program to a Boost Library</a></h1>
    569569<p>To demonstrate linking with a Boost binary library, we'll use the
    570570following simple program that extracts the subject lines from
    571571emails.  It uses the <a class="reference external" href="../../libs/regex/index.html">Boost.Regex</a> library, which has a
     
    599599</ol>
    600600<div class="admonition-auto-linking admonition">
    601601<p class="first admonition-title">Auto-Linking</p>
    602 <p class="last">Most Windows compilers and linkers have so-called “auto-linking
     602<p>Most Windows compilers and linkers have so-called “auto-linking
    603603support,” which eliminates the second challenge.  Special code in
    604604Boost header files detects your compiler options and uses that
    605605information to encode the name of the correct library into your
    606606object files; the linker selects the library with that name from
    607607the directories you've told it to search.</p>
     608<p class="last">The GCC toolchains (Cygwin and MinGW) are notable exceptions;
     609GCC users should refer to the <a class="reference external" href="unix-variants.html#link-your-program-to-a-boost-library">linking instructions for Unix
     610variant OSes</a> for the appropriate command-line options to use.</p>
    608611</div>
    609612<div class="section" id="link-from-within-the-visual-studio-ide">
    610 <h2><a class="toc-backref" href="#id39">6.1&nbsp;&nbsp;&nbsp;Link From Within the Visual Studio IDE</a></h2>
     613<h2><a class="toc-backref" href="#id40">6.1&nbsp;&nbsp;&nbsp;Link From Within the Visual Studio IDE</a></h2>
    611614<p>Starting with the <a class="reference internal" href="#vs-header-only">header-only example project</a> we created
    612615earlier:</p>
    613616<ol class="arabic simple">
     
    621624<p><a class="reference internal" href="#test-your-program"><em>skip to the next step</em></a></p>
    622625</div>
    623626<div class="section" id="or-link-from-the-command-prompt">
    624 <h2><a class="toc-backref" href="#id40">6.2&nbsp;&nbsp;&nbsp;Or, Link From the Command Prompt</a></h2>
     627<h2><a class="toc-backref" href="#id41">6.2&nbsp;&nbsp;&nbsp;Or, Link From the Command Prompt</a></h2>
    625628<p>For example, we can compile and link the above program from the
    626629Visual C++ command-line by simply adding the <strong>bold</strong> text below to
    627630the command line we used earlier, assuming your Boost binaries are
     
    632635</pre>
    633636</div>
    634637<div class="section" id="library-naming">
    635 <h2><a class="toc-backref" href="#id41">6.3&nbsp;&nbsp;&nbsp;Library Naming</a></h2>
     638<h2><a class="toc-backref" href="#id42">6.3&nbsp;&nbsp;&nbsp;Library Naming</a></h2>
    636639<div class="note">
    637640<p class="first admonition-title">Note</p>
    638641<p>If, like Visual C++, your compiler supports auto-linking,
     
    654657<dd><em>Prefix</em>: except on Microsoft Windows, every Boost library
    655658name begins with this string.  On Windows, only ordinary static
    656659libraries use the <tt class="docutils literal"><span class="pre">lib</span></tt> prefix; import libraries and DLLs do
    657 not.<a class="footnote-reference" href="#distinct" id="id18"><sup>6</sup></a></dd>
     660not.<a class="footnote-reference" href="#distinct" id="id19"><sup>6</sup></a></dd>
    658661<dt><tt class="docutils literal"><span class="pre">boost_regex</span></tt></dt>
    659662<dd><em>Library name</em>: all boost library filenames begin with <tt class="docutils literal"><span class="pre">boost_</span></tt>.</dd>
    660663<dt><tt class="docutils literal"><span class="pre">-vc71</span></tt></dt>
     
    692695<td>using a special <a class="reference external" href="../../libs/python/doc/building.html#variants">debug build of Python</a>.</td>
    693696</tr>
    694697<tr><td><tt class="docutils literal"><span class="pre">d</span></tt></td>
    695 <td>building a debug version of your code.<a class="footnote-reference" href="#debug-abi" id="id19"><sup>7</sup></a></td>
     698<td>building a debug version of your code.<a class="footnote-reference" href="#debug-abi" id="id20"><sup>7</sup></a></td>
    696699</tr>
    697700<tr><td><tt class="docutils literal"><span class="pre">p</span></tt></td>
    698701<td>using the STLPort standard library rather than the default one supplied with
    699702your compiler.</td>
    700703</tr>
    701704<tr><td><tt class="docutils literal"><span class="pre">n</span></tt></td>
    702 <td>using STLPort's deprecated “native iostreams” feature.<a class="footnote-reference" href="#native" id="id20"><sup>8</sup></a></td>
     705<td>using STLPort's deprecated “native iostreams” feature.<a class="footnote-reference" href="#native" id="id21"><sup>8</sup></a></td>
    703706</tr>
    704707</tbody>
    705708</table>
     
    732735<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
    733736</div>
    734737<div class="section" id="test-your-program">
    735 <h2><a class="toc-backref" href="#id42">6.4&nbsp;&nbsp;&nbsp;Test Your Program</a></h2>
     738<h2><a class="toc-backref" href="#id43">6.4&nbsp;&nbsp;&nbsp;Test Your Program</a></h2>
    736739<p>To test our subject extraction, we'll filter the following text
    737740file.  Copy it out of your browser and save it as <tt class="docutils literal"><span class="pre">jayne.txt</span></tt>:</p>
    738741<pre class="literal-block">
     
    754757</div>
    755758</div>
    756759<div class="section" id="conclusion-and-further-resources">
    757 <h1><a class="toc-backref" href="#id43">7&nbsp;&nbsp;&nbsp;Conclusion and Further Resources</a></h1>
     760<h1><a class="toc-backref" href="#id44">7&nbsp;&nbsp;&nbsp;Conclusion and Further Resources</a></h1>
    758761<p>This concludes your introduction to Boost and to integrating it
    759762with your programs.  As you start using Boost in earnest, there are
    760763surely a few additional points you'll wish we had covered.  One day
     
    834837<table class="docutils footnote" frame="void" id="distinct" rules="none">
    835838<colgroup><col class="label" /><col /></colgroup>
    836839<tbody valign="top">
    837 <tr><td class="label"><a class="fn-backref" href="#id18">[6]</a></td><td>This convention distinguishes the static version of
     840<tr><td class="label"><a class="fn-backref" href="#id19">[6]</a></td><td>This convention distinguishes the static version of
    838841a Boost library from the import library for an
    839842identically-configured Boost DLL, which would otherwise have the
    840843same name.</td></tr>
     
    843846<table class="docutils footnote" frame="void" id="debug-abi" rules="none">
    844847<colgroup><col class="label" /><col /></colgroup>
    845848<tbody valign="top">
    846 <tr><td class="label"><a class="fn-backref" href="#id19">[7]</a></td><td>These libraries were compiled without optimization
     849<tr><td class="label"><a class="fn-backref" href="#id20">[7]</a></td><td>These libraries were compiled without optimization
    847850or inlining, with full debug symbols enabled, and without
    848851<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
    849852these choices don't affect binary compatibility with other
     
    853856<table class="docutils footnote" frame="void" id="native" rules="none">
    854857<colgroup><col class="label" /><col /></colgroup>
    855858<tbody valign="top">
    856 <tr><td class="label"><a class="fn-backref" href="#id20">[8]</a></td><td>This feature of STLPort is deprecated because it's
     859<tr><td class="label"><a class="fn-backref" href="#id21">[8]</a></td><td>This feature of STLPort is deprecated because it's
    857860impossible to make it work transparently to the user; we don't
    858861recommend it.</td></tr>
    859862</tbody>
  • more/getting_started/windows.rst

    RCS file: /cvsroot/boost/boost/more/getting_started/windows.rst,v
    retrieving revision 1.2.2.2
    diff -d -d -u -r1.2.2.2 windows.rst
     
    199199
    200200.. parsed-literal::
    201201
    202    C:\WINDOWS> cd |default-root|
     202   C:\\WINDOWS> cd |default-root|
    203203   |default-root|> bjam **^**
    204204   More? **--build-dir=**\ %TEMP%\\build-boost **^**
    205205   More? **--toolset=**\ msvc stage
     
    219219   object files; the linker selects the library with that name from
    220220   the directories you've told it to search.
    221221
     222   The GCC toolchains (Cygwin and MinGW) are notable exceptions;
     223   GCC users should refer to the `linking instructions for Unix
     224   variant OSes`__ for the appropriate command-line options to use.
     225
     226__ unix-variants.html#link-your-program-to-a-boost-library
     227
     228
    222229Link From Within the Visual Studio IDE
    223230--------------------------------------
    224231