Gfortran does not recognize module generated by gfortran
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Sep 18 14:00:00 GMT 2007
On Tue, Sep 18, 2007 at 02:34:54PM +0100, Fran?ois-Xavier Coudert wrote:
> >> I have -J option in the makefile to define module directory.
> >
> > If I put the module in a separate file and rename it as z_parametres instead
> > of i_parametres, the code compiles and work well.
>
> It's hard to tell you what is happening without having a simple
> example. I tried to reproduce based on your description, but I does
> not fail ;-)
>
> What happens if you add a -I option with identical argument as the -J
> one. Does it fix the problem? (there was such a bug, at some point,
> though I think I fixed it quite some time ago) Other than that, I'll
> really need to see a code example to understand what happens.
>
The description of the problem appears to be a forward reference
to the module.
subroutine a ! line 1
use b
...
end subroutine a ! line n
module b l line m > n
...
end module b
Of course, wihtout seeing the original code, this is all
conjecture.
--
Steve
More information about the Fortran
mailing list