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

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;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;

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

project test_order_of_prebuilt
: requirements

exe mine : my.cpp ;

 --------------010902040109010508020705 Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;

...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" 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...

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at