From fe54e4d5d006e592060ca2d12c3d786c558d7c82 Mon Sep 17 00:00:00 2001
From: Dave Abrahams
Onward
---Good luck, and have fun!
-—the Boost Developers
-
The path to the “boost root directory” is sometimes referred to as $BOOST_ROOT in documentation and mailing lists. If you -used the Windows installer, that will usually be C:\Program Files\boost\boost_1_34_0.
+used the Windows installer, that will usually be C: \Program`` \ ``Files\boost\boost_1_34_0.To compile anything in Boost, you need a directory containing the boost/ subdirectory in your #include path. For most @@ -313,7 +306,7 @@ select Visual C++ > Win32.
The Windows installer supplied by Boost Consulting will download and install pre-compiled binaries into the lib\ subdirectory of -the boost root, typically C:\Program Files\boost\boost_1_34_0\lib\.
+the boost root, typically C: \Program`` \ ``Files\boost\boost_1_34_0\lib\.For example, on Windows, your session might look like:
-C:WINDOWS> cd C:\Program Files\boost\boost_1_34_0 -C:\Program Files\boost\boost_1_34_0> bjam \ +C:WINDOWS> cd C: \Program`` \ ``Files\boost\boost_1_34_0 +C: \Program`` \ ``Files\boost\boost_1_34_0> bjam \ --build-dir=%TEMP%\build-boost \ --toolset=msvc stage@@ -574,7 +567,7 @@ linker, consider setting up a use in the Boost.Build documentation. If that isn't your problem or the user-config.jam file doesn't work for you, please address questions about configuring Boost for your compiler to the -Boost.Build mailing list. +Boost.Build mailing list.
Most Windows compilers and linkers have so called “auto-linking -support,” which is used by many Boost libraries to eliminate the -second challenge. Special code in Boost header files detects your -compiler options and uses that information to encode the name of -the correct library into your object files; the linker selects the -library with that name from the directories you've told it to -search.
+Most Windows compilers and linkers have so-called “auto-linking +support,” which eliminates the second challenge. Special code in +Boost header files detects your compiler options and uses that +information to encode the name of the correct library into your +object files; the linker selects the library with that name from +the directories you've told it to search.
For example, we can compile and link the above program from the Visual C++ command-line by simply adding the bold text below to the command line we used earlier, assuming your Boost binaries are -in C:\Program Files\boost\boost_1_34_0\lib:
+in C: \Program`` \ ``Files\boost\boost_1_34_0\lib:cl /EHsc /I path\to\boost_1_34_0 example.cpp \ /link /LIBPATH: C:\Program Files\boost\boost_1_34_0\lib @@ -646,7 +638,7 @@ earlier: select Properties from the resulting pop-up menu
This concludes your introduction to Boost and using it with your -programs. Remember that this page is only supposed to get you -started and not describe every detail you might want to know about. -There are lots of resources you can pursue from this point onward. +
This concludes your introduction to Boost and to integrating it +with your programs. As you start using Boost in earnest, there are +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 Boost Users' +make this document clearer, please post it to the Boost Users' mailing list.
Note
-We're also very interested in what sort of material might -be appropriate for a “Book 2” in a Getting Started series.
+Onward
++Good luck, and have fun!
+—the Boost Developers
+
followed by Return. For example,
-cd C:\Program Files\boost\boost_1_34_0 +cd C: \Program`` \ ``Files\boost\boost_1_34_0
One way to name a directory you know about is to write
@@ -948,7 +944,7 @@ recommend it.diff --git a/getting_started.rst b/getting_started.rst index 6cb0fe2..131d7ee 100644 --- a/getting_started.rst +++ b/getting_started.rst @@ -23,7 +23,7 @@ __ ../index.htm .. |root| replace:: ``/``\ *path*\ ``/``\ *to*\ ``/``\ |boost_ver| .. |winroot| replace:: *path*\ ``\``\ *to*\ ``\``\ |boost_ver| -.. |winroot-default| replace:: ``C:\Program Files\boost\``\ |boost_ver| +.. |winroot-default| replace:: ``C:\Program``\ `` ``\ ``Files\boost\``\ |boost_ver| .. |bold-winroot-default| replace:: **C:\\Program Files\\boost\\**\ |boost_ver-bold| Introduction @@ -663,13 +663,12 @@ Link to a Boost Library on Windows .. _auto-linking: -Most Windows compilers and linkers have so called “auto-linking -support,” which is used by many Boost libraries to eliminate the -second challenge. Special code in Boost header files detects your -compiler options and uses that information to encode the name of -the correct library into your object files; the linker selects the -library with that name from the directories you've told it to -search. +Most Windows compilers and linkers have so-called “auto-linking +support,” which eliminates the second challenge. Special code in +Boost header files detects your compiler options and uses that +information to encode the name of the correct library into your +object files; the linker selects the library with that name from +the directories you've told it to search. Link to a Boost Library from the Visual Studio Command Prompt ............................................................. @@ -806,15 +805,16 @@ following elements: tagged as "-1_31_1". ``.lib`` - *Extension*: determined according to the - operating system's usual convention. On Windows, ``.dll`` - indicates a shared library and ``.lib`` indicates a static or - import library. On most \*nix platforms the extensions are - ``.a`` and ``.so`` for static libraries (archives) and shared - libraries, respectively. Where supported by \*nix toolsets, a - full version extension is added (e.g. ".so.1.34"); a symbolic - link to the library file, named without the trailing version - number, will also be created. + *Extension*: determined according to the operating system's usual + convention. On most \*nix platforms the extensions are ``.a`` + and ``.so`` for static libraries (archives) and shared libraries, + respectively. On Windows, ``.dll`` indicates a shared library + and—except for static libraries built by ``gcc`` toolset, whose + names always end in ``.a``— ``.lib`` indicates a static or import + library. Where supported by \*nix toolsets, a full version + extension is added (e.g. ".so.1.34") and a symbolic link to the + library file, named without the trailing version number, will + also be created. .. _Boost.Build toolset names: toolset-name_ @@ -904,11 +904,11 @@ mailing list`_. -- the Boost Developers -.. _Boost.Build reference manual: http://boost.org/tools/build/v2 -.. _Boost.Jam reference manual: http://boost.org/tools/jam -.. _Boost Users' mailing list: http://boost.org/more/mailing_lists.htm#users +.. _Boost.Build reference manual: ../tools/build/v2 +.. _Boost.Jam reference manual: `Boost.Jam`_ +.. _Boost Users' mailing list: mailing_lists.htm#users .. _Boost.Build Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Boost.Build_V2 -.. _Boost.Build mailing list: http://boost.org/more/mailing_lists.htm#jamboost +.. _Boost.Build mailing list: mailing_lists.htm#jamboost .. _`Using command-line tools in Windows`: