Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2006-06-26 08:03:42


Lally Singh wrote:
> Well, I think the problem is that bjam's not telling gfilt to link in
> the libraries.
>
> It should be calling something like:
>
> /Users/lally/Work/bin/gfilt -o "bin/darwin-3.2/debug/mfront"
> "bin/darwin-3.2/debug/config.o" "bin/darwin-3.2/debug/driver.o"
> "bin/darwin-3.2/debug/output.o" "bin/darwin-3.2/debug/main.o"
> "bin/darwin-3.2/debug/map.o" "bin/darwin-3.2/debug/actions.o"
> "bin/darwin-3.2/debug/generator.o" -L/usr/local/lib
> -lboost_filesystem -lboost_wave -lboost_regex
>
> (Doing this by hand works perfectly)
> But the -L and -l arguments aren't there, bjam's just calling:
>
> /Users/lally/Work/bin/gfilt -o "bin/darwin-3.2/debug/mfront"
> "bin/darwin-3.2/debug/config.o" "bin/darwin-3.2/debug/driver.o"
> "bin/darwin-3.2/debug/output.o" "bin/darwin-3.2/debug/main.o"
> "bin/darwin-3.2/debug/map.o" "bin/darwin-3.2/debug/actions.o"
> "bin/darwin-3.2/debug/generator.o" -g
>

In your Jamfile.v2, you have: "$(BOOST_ROOT)//filesystem" Is
BOOST_ROOT actually defined? You can add the line "ECHO $(BOOST_ROOT)
;" to your file to find out. If it's not, then those lines will expand
to nothing.

In my setup, boost's Jamfile.v2 sets up the libraries as
"/boost/thread", "/boost/filesystem" and I just use those (note: no
"//"). On the other hand, I've got boost as part of my source tree
(under the directory containing Jamroot.jam) instead of outside it, so
that may make a difference.

Phillip


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