|
Boost-Build : |
From: Xavier Benech (xavier_at_[hidden])
Date: 2006-11-17 06:36:47
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??
Thanks,
Xavier.
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