由于本人疏忽,在使用自由格式编译完一Fortran程序后存储时命名为 iotest.f(本应为iotest.f90或iotest.F),编译时出现如下错误:
Compiling Fortran...
E:\exercise\FOR90\exam\f_f90\iotest.f
f90: Error: Illegal character in statement label field [P]
f90: Error: Illegal character in statement label field [r]
f90: Error: Illegal character in statement label field [o]
f90: Error: Illegal character in statement label field [g]
f90: Error: Illegal character in statement label field [r]
f90: Error: First statement in file must not be continued
仔细检查了程序,也没有发现问题,最后突然想到是格式问题。出现如此低级错误令人很是晕,应尽量避免出现。
阅读(2258) | 评论(0) | 转发(0) |