Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-08-03 06:45:56


On Wednesday 03 August 2005 13:55, John Maddock wrote:
> > I attach a small working example that seem to do what you wanted.
> > If I unpack it to boost root and run "bjam --v2", a library is built
> > and staged (with the -mt suffix, as expected), and the application is
> > linked.
> >
> > For me on gcc the link of application naturally fails, as there's no
> > autolinking ;-) I'd hope that on windows, right library is picked.
>
> I'll look into it, but in the mean time what does the "explicit" target do?

That was a workaround for a bug, that was just fixed in CVS.

The real function of "explicit" is to say that the target should not be build
unless explicitly requested. Without it, the "install" target is build twice,
first time because it's part of Jamfile, and the second time because it's used
in the "exe" rule.

A bug in "install" target implementation caused it two produce two different
targets for symlinks, and then V2 would detect that two different targets are
assigned the same file name, and exit with an error.

But as I've said, the bug is fixed so you can remove "explicit".

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 

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