finding a circular dependency
Robert Jacques
sandford at jhu.edu
Mon Jun 21 19:22:25 PDT 2010
On Mon, 21 Jun 2010 14:51:01 -0400, 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
Templates and particularly type inference (i.e. auto variables and auto
returns, etc) are common sources of forward reference, etc issues. Also,
I'd recommend diff-ing the code bases to see exactly what you changed.
More information about the Digitalmars-d
mailing list