Error 'nf90_def_var_deflate has no IMPLICIT ty

2019-09-19 03:00发布

问题:

I have some code which compiles fine on one machine but on a different machine (using the same compilers, gcc and gfortran, and same flags) I get an error which I can't understand how it is compile related:

 deflate_status = nf90_def_var_deflate(NCF%ncid, i, 0, 1, 7)
                  1
 Error: Function 'nf90_def_var_deflate' at (1) has no IMPLICIT type

The variable is definitely declared (and it compiles and runs on the first machine). What sort of problems with compile setup could cause this error?