finding a circular dependency

Rory McGuire rmcguire at neonova.co.za
Tue Jun 22 00:14:38 PDT 2010


On Mon, 21 Jun 2010 20:51:01 +0200, Steven Schveighoffer  
<schveiguy at yahoo.com> wrote:

> I've been trying to get a modified version of std.process to compile  
> (with Lars K's changes) for windows, and phobos finally compiled.
>
> So I built a little test program, compiled it, and I get the following  
> error message:
>
> object.Exception: circular dependency in module std.stdio.
>
> Great.  How did that happen?  Being that I didn't write std.stdio, only  
> modified it slightly (and certainly didn't change any imports), I  
> haven't the foggiest where this problem is.  Given that the runtime can  
> prove there is a circular dependency, and apparently knows the names of  
> the modules, how about showing me the cycle?
>
> :P
>
> I do not look forward to tracking this one down...
>
> -Steve

doesn't -verbose list the modules dmd is importing? Perhaps it stops at  
the offending module?


More information about the Digitalmars-d mailing list