Re: Error in opening the Library module file
- From: "Jugoslav Dujic" <jdujic@xxxxxxxxx>
- Date: Wed, 27 Sep 2006 09:48:20 +0200
Mike wrote:
| 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.
Often, the circular dependencies present a design flaw. In other
situations, it's a language flaw (the code you had is, I think,
'correct', but it wouldn't be if USEs are on module tops). Fortran
is apparently designed with strict "top to bottom" hierarchy in
mind (for the good or the bad of it). In some situations, that
forces you to employ a correct top-to-bottom design; in others,
where "circular" design is called for, you have to hack your way
through by some unnatural design choices. I can't tell from your
simple code which is your real case, but there you go...
--
Jugoslav
___________
www.xeffort.com
Please reply to the newsgroup.
You can find my real e-mail on my home page above.
.
- Follow-Ups:
- Re: Error in opening the Library module file
- From: Mike
- Re: Error in opening the Library module file
- From: Richard Maine
- 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
- 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
|