Boost logo

Boost Users :

From: Richard Kaiser (junk1_at_[hidden])
Date: 2005-09-29 17:08:31


Thanks, John and Aaron. In the meantime everything works and I have
written a little installation guide. If you find any mistakes or
improvements, please let me know.

Richard Kaiser

1.1 Installing the Boost Libraries in Windows
Since the installation of the Boost library is not that trivial, we
present it for boost version 1.33. For more detailed information,
consult the installation instructions from www.boost.org.
a) Download the current Boost version from
http://www.boost.org
For the rest of this section we assume, that boost_1_33_0.zip (version
1.33.0) was unzipped into the directory
c:\boost
Since the installation routine from b) requires and creates the
directory c:\boost, it is recommended to use exactly this name and no
other one, although this is also possible. Unzipping creates the directory
c:\boost\boost_1_33_0
Enter this directory in C++Builder under
Project|Options|C++Compiler/¬Paths and Defines|Include search path.
b) The installation steps from a) are sufficient for most Boost
libraries, but not for all. This second part b) is more time consuming.
b1) Download boost-jam. For Boost version 1.33 this is
boost-jam-3.1.11-1-ntx86.zip. Follow the link on the “Getting Started”
page (or the like). Unzip bjam.exe into the directory
c:\boost\boost_1_33_0
b2) Start a Microsoft Command Processor cmd.exe
(Start|Programs|¬Accesso¬ries|¬Command Prompt, using 4DOS or Take
Command will not work). If there is no path set to your compilers bin
directory, set one with a statement like
PATH=%PATH%;c:\CBuilder\bin
or
PATH=%PATH%;c:\MinGW\bin
b3) Under cmd.exe, in the directory c:\boost\boost_1_33_0, execute
bjam "-sTOOLS=borland" install
or
bjam "-sTOOLS=mingw" install
On my 1.7 GHz machine this took about 2 (BCB6) or 6 hours (MinGW). It
creates the directory c:\boost\lib with about 200 MB (BCB6) or 1600 MB
(MinGW) lib- and dll libraries. The names of these libraries are
composed from the libraries to which they belong, the compiler (e.g.
“bcb” for Borland C++Builder) and further symbols like “mt” for
multithread, “s” for static and “d” for debug libraries. In addition,
bjam creates the directory c:\boost\include. It contains essentially the
same files as c:\boost\boost_1_31_0\include.
To use the Boost libraries with Borland C++Builder 6, enter the library
to your project by using Project|Add to Project.
To use the Boost libraries with MinGW GNU C++, enter e.g.
g++ -Ic:\boost\boost_1_33_0 -Lc:\boost\lib
-llibboost_unit_test_framework-mgw-sd unit_test_example1.cpp
Note: Do not enter a .lib extension for the lib file although this lib
file has such an extension.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net