|
Boost-Build : |
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-02-23 19:48:02
Jody Hagins wrote:
>
> 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
> ;
Now that's a hard one.. Let me see if I can figure something out. But I
have a question.. Could the solution allow for renaming the .o file?
That is, would it be OK to have the anon1.cpp compile to anon1.o and
have the anondir1/anon1.cpp compile to anondir1_anon1.cpp? Or would that
invalidate your test? (The source file name would not change, just the
destination)
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
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