On Saturday, August 13, 2016 at 8:21:42 AM UTC-7, Arjen Markus wrote:
> > > - When I build it, the generated makefile takes no care at all of the module and the dependencies related to it, i.e. the source files are compiled in an order that is simply wrong. For this small project, that is no problem, but in more complex situations it is a major stumbling block.
> >
> > How are you generating the makefile? Are you using the one produced by the IDE?
> >
> > Robert Corbett
>
> Yes, I am (well, it is a collection actually - one for each configuration)
The people who work on the IDE are not Fortran experts.
They treat Fortran essentially the same as they treat
C and C++. Because C and C++ have nothing like Fortran
modules, the IDE does not take Fortran modules into
account.
The people who work on the Fortran compiler know
Fortran better than the people who work on the IDE.
The Fortran compiler contains an option -xM for
generating dependency information. The option
assumes a specific model for the dependencies.
The model is not to everyone's taste, so you might
or might not like the dependencies produced by
the compiler, but the compiler does account for
modules.
Robert Corbett