adwaita@adwaita-HP-2000-Notebook-PC:~/Downloads/netcdf-fortran-4.4.1/v2.9$ make install
f77 -c gwrdge.f
gwrdge.inc: In function `luserd':
gwrdge.inc:32:
STRUCTURE /gwridge/
1 2
Unrecognized statement name at (1) and invalid form for assignment or statement-function definition at (2)
gwrdge.inc:50:
END STRUCTURE
^
Invalid form for END statement at (^)
gwrdge.f:106:
RECORD /gwridge/ rdg
1 2
Unrecognized statement name at (1) and invalid form for assignment or statement-function definition at (2)
gwrdge.inc:50:
END STRUCTURE
1
gwrdge.f:107: (continued):
REAL rt
2
Statement at (2) invalid in context established by statement at (1)
gwrdge.f:100:
LOGICAL FUNCTION LUSERD(rdg)
1
gwrdge.f:111: (continued):
IF(rdg.lon .LT. lon1 .OR.
2
Invalid declaration of or reference to symbol `rdg' at (2) [initially seen at (1)]
gwrdge.f:111:
IF(rdg.lon .LT. lon1 .OR.
^
Period at (^) not followed by valid keyword forming a valid binary operator; `.lon.' is not a valid binary operator
gwrdge.f:111:
IF(rdg.lon .LT. lon1 .OR.
^
Invalid declaration of or reference to symbol `lt' at (^) [initially seen at (^)]
答案 0 :(得分:0)
这些DEC扩展刚刚在gfortran
中实施。您不能在当前版本中使用它们。请参阅主题https://gcc.gnu.org/ml/fortran/2014-10/msg00080.html
您可以尝试将代码转换为标准Fortran或使用其他编译器。例如,Oracle Solaris Studio支持它们http://docs.oracle.com/cd/E19205-01/819-5262/aeulw/index.html。