Re: Error in opening the Library module file



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.
.



Relevant Pages

  • Compiler positions available for week ending September 16
    ... advertise a position having something to do with compilers and must also ... Software Design Engineer ... The Visual C++ team is working hand in hand with the Windows division ... on enhancing the appeal of Vista and Windows 7 for ISV developers and ...
    (comp.compilers)
  • Re: Mechanical Aptitude Test
    ... Why is there junk code? ... Sometimes down to the indivudual transistors ... There are teams that suport the compilers, ... Computer simulation of the design was not a reality. ...
    (alt.machines.cnc)
  • Re: Principle of Orthogonal Design
    ... Orthogonal Design" by Erki Eessaar ... redundancy, and at the same time allows cases where there ... overlapping meaning if it does not follow from the constraints / ... dependencies that the intersection of R and S is always empty. ...
    (comp.databases.theory)
  • Re: Unix and OO Avoidance
    ... If those dependencies are not well managed, ... I equated an OO design with a decoupled design. ... and techniques to reduce the coupling even more. ... So the caller has no static dependency on the callee. ...
    (comp.object)
  • Re: free question
    ... > design, that's a bug aborted ... At least the standard is nothing more than a collection of practical ... behavior of compilers, unifying them. ... Rewiting things needed to be properiatry is hard enough, ...
    (comp.lang.c)