Boost logo

Boost-Build :

Subject: Re: [Boost-build] Why to repeat library dependency ?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-03-28 12:01:53


On 03/28/2015 05:12 AM, Christophe B wrote:
> I am using for my projects (currently, gcc-4.8 under ubuntu)
> According to the documentation
> (, it is
> not necessary to repeat library dependency at higher level to allow
> linkage. If A depends on B and B depends on C, it is not required to
> mention the dependency of A to C.

That's not exactly what the documentation says.
You still need the dependency when A depends
on C directly.

> #Very simplified dependency scheme for clarity
> unit-test A : B ;
> lib B : C ;
> Unfortunately, I do not observer this behaviour and I get a linker error
> claiming that symbols from C are missing.
> Explicitly adding a dependency to C on A solved my issue:
> unit-test A : B C ;
> lib B : C ;
> This seems to contradict the documentation.
> Can it be any reason for requiring to repeat a dependency on higher level ?

In Christ,
Steven Watanabe

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