Boost logo

Boost-Build :

From: Lally Singh (lally.singh_at_[hidden])
Date: 2006-06-25 18:52:20


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

On 6/25/06, Reece Dunn <msclrhd_at_[hidden]> wrote:
> Lally Singh wrote:
> > Thanks so much for your help. I put the using darwin : 3.2 :
> > /Users/lally/Work/bin/gfilt ; line into ~/user-config.jam, and it did
> > exactly what you said. Wonderfully formatted warnings, and ld's not
> > complaining about unknown flags anymore.
>
> Great!
>
> > But, it's not linking in the libraries. I'm sorry.
>
> :(
>
> > bjam eventually runs:
> >
> > /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
> >
> > which complains about many, many undefined symbols.
>
> Hmm. Do you know what libraries these are corresponding to? Are
> they all Boost-related?
>
> > Is there any other means of specifying a library to link in?
>
> Doing:
>
> exe test : ... $(BOOST_ROOT)//wave ;
>
> should work. You should see Boost.Wave being built and then
> linked in. Hmmm. Can you try the static library versions:
>
> $(BOOST_ROOT)//wave/<link>static
>
> If that works, can you try the shared library version:
>
> $(BOOST_ROOT)//wave/<link>shared
>
> You can rebuild everything by saying:
>
> bjam darwin-3.2 -a
>
> and can print the commands that will be executed (-n):
>
> bjam darwin-3.2 -a -n
>
> Can you see what version of the Boost libraries you are
> linking against are being used (i.e. static/shared)?
>
> Hmm. Do you know if the gfilt command line has gone over
> the shell line limit (I don't think this is the case, though).
>
> I don't know enough about the problem to know what the
> solution is, but maybe my suggestions will help track down
> the problem. If not, post again with as much information
> as you can give that is relevant to the problem.
>
> HTH,
> - Reece
> _________________________________________________________________
> Try Live.com - your fast, personalized homepage with all the things you care about in one place.
> http://www.live.com/getstarted
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>


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