BOOST WIKI | RecentChanges | Preferences | Page List | Links List
After downloading Boost from the Boost website or from the CVS you need
to compile the Boost libraries using the Boost.Build system. Boost.Build is based on Boost.Jam instead of the well known - but less portable -
Note that only a few libraries require a library compilation step using Boost.Jam.
These are: thread, date-time, filesystem, regex, signals, serialization, and python. Graph also requires this step only if the graphviz feature is to be used. The other Boost libraries are contained completely within header files.
As of 1.31.0, the random library also must be built if you want to use the nondeterministic random generator random_device. Unfortunately, there does not appear to be a Jamfile suitable to build it. -Jody Hagins
Next Boost.Jam is also used for generating all test programs and running all tests.
To obtain Boost.Jam, you can either:
- compile the sources located in boost/tools/jam using the included build.bat (for Windows) or build.sh script (UNIX-like OSes)
- or download a precompiled executables for:
Boost.Jam and Boost.Build packages are available for:
How to Install Boost for Visual C++ Users
An unambiguous guide for Visual C++ users who have never installed 3rd party libraries before. In this example VC++ has been installed to d:\Microsoft Visual Studio 8\ Subtitute your install directory accordingly.
- Download and extract: boost_[version].exe and boost-jam-[version]-ntx86.zip . You can obtain the most recent versions from SourceForge.
- Move bjam.exe into the directory you extracted boost to.
- In a command prompt, navigate to this same directory.
- If you've installed VC++ in the default location - c:\Program Files , run the command: bjam install
- Users who have installed VC++ in another directory use the command: bjam.exe "-sVC80_ROOT=d:\Microsoft Visual Studio 8\VC" -sTOOLS=vc-8_0 install
- Add --prefix=d:\Boost\ if you want to install it to another dir besides c:\boost **Boost will begin compiling. When finished, all the necessary files (.hpp .lib and .dll) for using boost will reside in c:\boost
You probably need to set PATH to "c:\windows;c:\windows\system32;c:\windows\wbem" to make it work.
Adding Boost Files to Your Projects
- Since boost is extremely useful, it's likely you'll want to set the default search path for .lib's and .hpp's in all your projects. After these next steps you will be able to declare boost headers with this syntax: #include <boost/filesystem/operations.hpp>
- In MSVC navigate to Tools -> Options -> Projects and Solutions -> VC++ Directories.
- You should see on the top right corner text that says 'Show Directories For'
- Choose 'Include Files' and add the directory c:\boost\include\boost-[version]
- For libs, choose 'Library Files' and add the directory c:\boost\lib
That should be it. Try one of the examples detailed in the Boost documents.
- (For the curious, several .libs are copies with different names (do a CRC check). This is due to a Windows issue. On unix systems, one file can be symbolicly linked to another file. Windows symbolic links aren't reliable and the developers of boost decided to take the safe route. Each boost Windows .lib is an unreferenced hard copy.)
- When you are ready to release your project, you can take the boost .dll files from c:\boost\lib and put it in the directory of your .exe.
[buy fioricet online] [buy fioricet] [[buy fioricet online]]
Disclaimer: This site not officially maintained by Boost Developers