|
Boost-Build : |
Subject: Re: [Boost-build] executables and library dependencies
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-04-15 14:17:57
On Thursday 15 April 2010 20:53:23 Jim Gallagher wrote:
> If I'm building an executable that uses lib b, and lib b depends on
> lib a, must I list both lib a and lib b as sources for the exe? The
> sample in the docs seems to indicate "yes":
> <http://www.boost.org/doc/tools/build/doc/html/bbv2/faq/s05.html>
>
> I would prefer not to, but I suspect it is this way for a reason.
The answer is complex. On most systems and in most cases, the answer
is "no". However, if any code that is compiled into the executable,
such as inline functions in a's or b's headers or template functions
there, directly refer to symbols from 'a', then, on Windows, you
have to list both a and b. This is pretty confusing behaviour, so
probably should be fixed in Boost.Build -- let me know if you
actually run in this problem.
Thanks,
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build: 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