Re: Module compile order



Thomas Robitaille <no@xxxxxxxx> wrote:

In a large project I have, two modules mutually depend on each other.
What is the best way to compile these?

The best way is to fix the code so that it conforms to the Fortran
standard. Such mutual module dependence is explicitly disallowed by the
standard. You can probably do various tricks to get it to work in some
compilers, but it is not standard, and there are probably compilers with
which you just won't be abe to make it work.

Any such tricks are definitely compiler-dependent.

Restructuring the code so that it doesn't have such mutual dependencies
can take a bit of work, its true. That's a subject that has been
discussed here before. The f2003 submodules TR can help with some of the
trickier cases if you happen to have a compiler that supports it. (I
think some already do support it, even though they don't yet support all
of f2003, but I'm not sure and don't have a list.)

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: [F77] storing bytes data
    ... >> I don't know that there is a standard for one byte integers, ... > There is no guarantee that all compilers support them, ... > that don't support one. ... > of 256 different values in default character. ...
    (comp.lang.fortran)
  • Re: Strange Behaviour of Salford Compiler
    ... > Although the standard can be cryptic at times, ... > implemented relatively early in many compilers. ... but say that it can't support some features. ...
    (comp.lang.fortran)
  • Re: My question is , will C continue to dominate the embedded systems ?
    ... >become a standard superset for embedded compilers? ... The issue is does a hosted C compiler need to support ... conforming compiler targeting embedded systems need to support say ... C compilers need to support a core language and specify clearly what ...
    (comp.arch.embedded)
  • Re: Cant understand this! (Help required please)
    ... Yes and some online courses NETG does not seem to understand what ... > New to programming: ... I have heard of comeau don't they make compilers too? ... An argument I have used many times myself, I want to learn standard C++, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: cariage control
    ... > the printing conventions of the old ASA printer standard. ... compilers don't do that, including most of the compilers that I ... I know that some operating systems support ... I want to be able to beat on the vendors that do this and convince ...
    (comp.lang.fortran)