Boost logo

Boost-Build :

From: Jody Hagins (jody-boost-011304_at_[hidden])
Date: 2005-02-23 15:11:53


Here is my next problem. I have a test that checks to see that
type_info for anonymous objects is handled correctly. One thing I want
to do is have files with the same name, but in different directories,
using the same anonymous namespace from a header file. I tried this,
but it tries to link the same anon1.o twice.

run anon_test.cpp anon1.cpp anon2.cpp anondir1/anon1.cpp
<lib>../../test/build/boost_unit_test_framework
: # ARGS
: # INPUT FILES
: # REQUIREMENTS
: # TEST NAME
anon_test
: # DEFAULT BUILDS
debug
;

shandalle:jody> bjam -d+2 test
gcc-Link-action
../../../bin/boost/libs/type_id/test/anon_test.test/gcc/debug/anon_test

set -e

export LD_LIBRARY_PATH
"g++" -g -o
"../../../bin/boost/libs/type_id/test/anon_test.test/gcc/debug/anon_tes
t"
-L"../../../bin/boost/libs/test/build/libboost_unit_test_framework.a/gc
c/debug"
"../../../bin/boost/libs/type_id/test/anon_test.test/gcc/debug/anon_tes
t.o"
"../../../bin/boost/libs/type_id/test/anon_test.test/gcc/debug/anon1.o"
"../../../bin/boost/libs/type_id/test/anon_test.test/gcc/debug/anon2.o"
"../../../bin/boost/libs/type_id/test/anon_test.test/gcc/debug/anon1.o"
"../../../bin/boost/libs/test/build/libboost_unit_test_framework.a/gcc/
debug/libboost_unit_test_framework.a"
"../../../bin/boost/libs/test/build/libboost_unit_test_framework.a/gcc/
debug/libboost_unit_test_framework.a" -Wl,-rpath-link,.

 


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