From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-12-09 04:34:23
Zbynek Winkler wrote:
> > I don't think there's any bug. The reference "/number" is allows, and
> > means "project called /number". IOW, when "mcl/test" is build it also
> > builds *all* targets from "/number", including "number_test.cpp" and uses
> > those targets as sources. So, "number_test.cpp" is compiled, too, giving
> > multiple declaration error.
> The example as sent did not give me any errors except for linking when
> the compiler says that there are multiple _main defined.
That's because it's not error from Boost.Build point of view. It's perfectly
ok to refer to all targets in other project with "/number' syntax. I'm not
sure it's worth issuing a warning message in this case. Or, to put in other
way, I'm not sure when such warning messages can be issued.
One use case for '/number' syntax is
stage all : /number ;
to stage everything in /number. The warning in this case is not necessary, and
I don't know how BB can distinguish those cases.
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