Boost logo

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":
> <>
> 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.


Vladimir Prus

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at