Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-09-12 08:13:16


In attached Jamfile I describe an executable that must be linked with a
prebuilt target. The prebuilt target consists of two libraries. When
linking with these two libraries, the order of the libraries is
inverted. However the order of the libraries must be maintained to link
succesfully.

See attached Jamfile and cmd's generated by the Jamfile

(Vladimir, I know you don't really like the strict order of libraries
necessary for linkers but it's the hard reality ;-)
 --------------010902040109010508020705 Content-Type: text/plain;
name="Jamfile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Jamfile"

LIBS = f77blas atlas ;
lib $(LIBS) : : <search>/usr/local/lib ;

project test_order_of_prebuilt
: requirements
<library>/test_order_of_prebuilt//$(LIBS)
;

exe mine : my.cpp ;

 --------------010902040109010508020705 Content-Type: text/plain;
name="bjam_generated_cmd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="bjam_generated_cmd"

...found 10 targets...
...updating 5 targets...
MkDir1 bin

mkdir "bin"

MkDir1 bin/gcc

mkdir "bin/gcc"

MkDir1 bin/gcc/debug

mkdir "bin/gcc/debug"

gcc.compile.c++ bin/gcc/debug/my.o

"g++" -Wall -ftemplate-depth-100 -O0 -fno-inline -g -c -o "bin/gcc/debug/my.o" "my.cpp"

gcc.link bin/gcc/debug/mine

"g++" -g -L"/usr/local/lib" -o "bin/gcc/debug/mine" "bin/gcc/debug/my.o" -latlas -lf77blas

...updated 5 targets...
 --------------010902040109010508020705--


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