Gfortran: attribute that requires explicit interface ???
Hi there,
Trying to compile a few Gfortran lines in Ubuntu 12.04 I get this error: Quote:
The code itself: Code:
program main Thanks, - A. |
What is the definition of the newunit function? Is it even defined anywhere?
|
It is not an intrinsic function but is based on an intrinsic function INQUIRE. So, there is a code in the program for that. I copied it from here.
|
Well, it wanted an interface for this function. In turn an interface needs to be in a module and the module has to be in a separate file too. Otherwise nothing works.
Code:
module sph_persp_mod |
It's just one of the rules of Fortran syntax ... modules should be in their own files.
|
All times are GMT -5. The time now is 02:17 AM. |