Boost logo

Boost-Build :

Subject: Re: [Boost-build] cycle runtime dependency
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-06-11 16:50:38


Anatoly Shirokov wrote:
> I have the following situation:
> The dll1 library loads the dll2 library dynamically via LoadLibrary.
> On the other hand the dll2 loads dll1 also dynamically. So there is no
> explicit dependency between two modules. But in runtime dll1 cannot
> work without dll2 and vise versa.
> I want to use <dependency> to illustrate this situation:
> lib dll1 : ... : <dependency>dll2 ;
> lib dll2 : ... : <dependency>dll1 ;
> But bjam fails with cycle detection.
> Is there way to describe this situation? Can bjam break a cycle itself?

Why do you need the libraries to depend on each other?
 From Boost.Build's point of view, dll1 depends on dll2
means that if dll2 is rebuilt, dll1 also needs to be rebuilt.
Is that what you want? If not why do you need to specify
the dependency?

In Christ,
Steven Watanabe

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