Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-11-17 16:38:48


On Friday 17 November 2006 16:56, Xavier Benech wrote:
> > On Friday 17 November 2006 14:36, Xavier Benech wrote:
> >> So, my question is: How to tell BB to link against the libraries in the
> >> order I need??
> >
> > 1. http://boost.org/boost-build2/doc/html/bbv2/faq/s05.html
>
> I have seen this in the documentation but didn't manage to make it work
> the way I specify libraries. I mean the following is not possible (?):
>
> lib mingw32 : : <library>/mingw32//mingw32 ;
> lib SDL : : <use> mingw32 <library>/SDL//SDL ;
> exe testSDL : testSDL.cpp SDL mingw32 ;

I don't even know what effect of this will be. If SDL library uses mingw
library, then the the definition of /SDL//SDL should <use> /migw32//mingw32.

> But maybe I should not use <library> and try to make it work like in the
> documentation, ie:
> lib mingw32 ;
> lib SDL : : <use> mingw32 ;
> exe testSDL : testSDL.cpp SDL mingw32 ;

Does this work for you -- do you get the right order? Just to clarify things.

> But then I will need to specify in the include path for each project and
> what I wanted is to have a toolset that I can re-use in all my project
> that configures the SDL include/lib path and libs names, like what qt.jam
> does for qt.
>
> > 2. I don't think that current version of V2 needs even that, it should
> > pass
> > the right options to the linker to work regardless of library order. What
> > version do you have?
>
> Mine should be 6-8 month old, maybe I should update...

I think Rene's change to make it work automatically was done not so long ago.

- Volodya


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