Re: Error in opening the Library module file
- From: "Mike" <acout@xxxxxxx>
- Date: 27 Sep 2006 06:20:13 -0700
Jugoslav Dujic wrote:
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
.
- Follow-Ups:
- Re: Error in opening the Library module file
- From: Mike
- 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
- Error in opening the Library module file
- Prev by Date: Re: Error in opening the Library module file
- Next by Date: Re: Question on multiple compiler environment
- 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
|
|