Boost logo

Boost-Build :

Subject: [Boost-build] Linking with boost
From: Benjamin Lindley (benjameslindley_at_[hidden])
Date: 2011-06-30 14:17:03


I just got started with Boost.Build. I've managed to get simple self
contained projects with no outside dependencies working. Now I'm trying
to figure out how to link with other libraries, starting with boost.
This is what I have tried:

Boost is installed in /Dev/C++/lib/boost_1_46_1
My project directory is /Dev/C++/test/hello

In my project directory is hello.cpp, and Jamroot.jam.

Jamroot.jam:

exe hello : hello.cpp ../../lib/boost_1_46_1 ;

Then I try to build with this command:

bjam toolset=gcc release

Am I doing that right? I get the following output.

configure.jam: No such file or directory
..\..\lib\boost_1_46_1\Jamroot:219: in modules.load
rule configure.register-components unknown in module
Jamfile</C:/Users/Cold/Dev/C++/lib/boost_1_46_1>.
C:/Users/Cold/Dev/C++/boost-build/build\project.jam:312: in load-jamfile
C:/Users/Cold/Dev/C++/boost-build/build\project.jam:68: in load
C:/Users/Cold/Dev/C++/boost-build/build\project.jam:170: in project.find
C:/Users/Cold/Dev/C++/boost-build/build\targets.jam:394: in find-really
C:/Users/Cold/Dev/C++/boost-build/build\targets.jam:410: in
object(project-target)@33.find
C:/Users/Cold/Dev/C++/boost-build/build\targets.jam:861: in
resolve-reference
C:/Users/Cold/Dev/C++/boost-build/build\targets.jam:880: in
targets.generate-from-reference
C:/Users/Cold/Dev/C++/boost-build/build\targets.jam:1170: in
generate-dependencies
C:/Users/Cold/Dev/C++/boost-build/build\targets.jam:1224: in
object(typed-target)@34.generate
C:/Users/Cold/Dev/C++/boost-build/build\targets.jam:765: in generate-really
C:/Users/Cold/Dev/C++/boost-build/build\targets.jam:738: in
object(main-target)@39.generate
C:/Users/Cold/Dev/C++/boost-build/build\targets.jam:255: in
object(project-target)@33.generate
C:/Users/Cold/Dev/C++/boost-build\build-system.jam:414: in load
C:\Users\Cold\Dev\C++\boost-build/kernel\modules.jam:261: in import
C:\Users\Cold\Dev\C++\boost-build\kernel\bootstrap.jam:132: in boost-build
C:\Users\Cold\Dev\C++\boost-build.jam:1: in module scope


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk