Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-11-17 08:33:34


On Friday 17 November 2006 14:36, Xavier Benech wrote:
> Hi,
>
> I have some trouble to tell BBv2 the right link order to link against
> external libraries. What I want to do is to compile an SDL program using
> MinGW and BoostBuild.
>
> I just started with a simple Jamfile looking like this:
>
> exe testSDL:
> testSDL.cpp
>
> <library>/mingw32//mingw32
> <library>/sdl//SDL
> <library>/sdl//SDLmain
> ;
>
> where mingw32, SDL, and SDLmain are defined as toolset with the right
> include and lib path.
>
> My trouble is that BB always output the following linking directive
> whatever I tried:
>
> gcc -o testSDL testSDL.o -lSDL -lSDLmain -lmingw32
>
> Which fails with an unresolved external. What I need is to get this:
>
> gcc -o testSDL testSDL.o -lmingw32 -lSDL -lSDLmain
>
> Which succed if I launch directly from the command line.
>
> 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

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?

- 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