Boost logo

Boost :

From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2007-05-16 23:23:13

Hi Michael,

On May 16, 2007, at 11:58 AM, Michael Walter wrote:

> I've stumbled on that "Duplicate name of actual target" error;
> unfortunately the FAQ doesn't seem to solve my problem, since I'm
> trying to compile two different files which happen to have the same
> basename, i.e. something like this:
> lib foo : bar/test.cpp baz/test.cpp ;
> What's the proper way to handle this situation, except for manually
> specifying the object file name?

The only way I know to do this, short of renaming the source file, is
like this

object bar_test : bar/test.cpp ;
lib foo : bar_test baz/test.cpp ;

unless you're willing to create separate bar and baz Jamfiles.

-- Noel

Boost list run by bdawes at, gregod at, cpdaniel at, john at