Re: Error in opening the Library module file
- From: "Mike" <acout@xxxxxxx>
- Date: 27 Sep 2006 22:29:42 -0700
Mike wrote:
Jugoslav Dujic wrote:Jugoslav has said that"
Mike wrote:How to avoid cyclic dependency at first?
| Mike wrote:
|| Originally they pick up some modules, however, they didn't pick up
|| modules which
|| are calling each other. I think this problem is called cyclic
|| dependencies, right?
Right, "cyclic" or "circular". What you had is (as far as I can tell)
allowed by the standard but it will confuse most compilers -- they
expect the dependency hierarchy to be "tree-like" and cannot tell which
module should be compiled first (esp. when they're in the same source
file).
By all means, try to avoid the situation -- the solution is often
to move the mutually shared stuff to a third module, which is
compilable separately.
What's the general idea to avoid it?
Mike
to move the mutually shared stuff to a third module, which is
compilable separately".
But I mean this is the solution when problem happened.
So, how to avoid cyclic dependency before making mistake?
Yes. The solution is also what Jugoslav said.
But when I write a new subroutine/function with some many USEd
modules, do I really need to
see the dependencies ? It's quite troublesome.
Mike
.
- Follow-Ups:
- Re: Error in opening the Library module file
- From: Jugoslav Dujic
- Re: Error in opening the Library module file
- References:
- Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: dpb
- Re: Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: Jugoslav Dujic
- Re: Error in opening the Library module file
- From: Mike
- Error in opening the Library module file
- Prev by Date: Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- Next by Date: Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- Previous by thread: Re: Error in opening the Library module file
- Next by thread: Re: Error in opening the Library module file
- Index(es):
Relevant Pages
|