Boost logo

Boost-Build :

From: Jody Hagins (jody-boost-011304_at_[hidden])
Date: 2005-03-01 14:41:48


On Mon, 21 Feb 2005 23:45:43 -0600
Rene Rivera <grafik.list_at_[hidden]> wrote:

> passed as arguments to the test. I added an example, which is what I
> used to test the functionality, in
> [boost-root]/tools/build/v1/example/target_test_arg.

Your example was working fine, until I tried to make my DLL a bit more
compilcated. I want to include a boost library, but I do not get an
appropriate -I on the command line. For example, with this in the
Jamfile...

dll tidll
: # SOURCES
tidll.cpp
: # REQUIREMENTS
: # DEFAULT BUILDS
debug
;

run dll_test.cpp <lib>../../test/build/boost_unit_test_framework
: # ARGS
: # INPUT FILES
<dll>tidll
: # REQUIREMENTS
<linkflags>"-ldl"
: # TEST NAME
dll_test
: # DEFAULT BUILDS
debug
;

I see the following...

shandalle:jody> bjam -d+2
gcc-C++-action
../../../bin/boost/libs/type_info/test/dll_test.test/gcc/debug/dll_test
.o

set -e
"g++" -c -Wall -ftemplate-depth-255 -g -O0 -fno-inline
-I"../../../bin/boost/libs/type_info/test" -I
"/home/jody/src/boost-devel/boost" -o
"../../../bin/boost/libs/type_info/test/dll_test.test/gcc/debug/dll_tes
t.o" "../../../libs/type_info/test/dll_test.cpp"
"/usr/bin/objcopy" --set-section-flags .debug_str=contents,debug
"../../../bin/boost/libs/type_info/test/dll_test.test/gcc/debug/dll_tes
t.o"

followed by a bunch of errors. Note that the following...

-I "/home/jody/src/boost-devel/boost"

is missing, though it appears when I build the code for the "run" rule.

Any ideas?

Thanks!

 


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