gfortran错误:意外元素'<'格式字符串 [英] gfortran error : Unexpected element '<' in format string
问题描述
我很难用gfortran编译旧的fortran源代码.我没有很多经验,因此请根据错误消息帮助我更正源代码.
I suffer the pain to compile the old fortran source code using gfortran. I did not have many experience to do this, so please help me to correct the source code based on the error message.
disturbance.f:1416.31:
disturbance.f:1416.31:
1505格式(I7,E12.3,< npftu> E10.3)
错误:意外的元素<"格式字符串位于(1)
1505 format ( I7, E12.3, < npftu>E10.3 )
Error: Unexpected element '<' in format string at (1)
请注意,npftu和<之间没有空格.>.
please note that there is no space between npftu and < >.
非常感谢.
推荐答案
变量 FORMAT
表达式是非标准的,并且gfortran(
Variable FORMAT
expressions are non-standard and are not supported by gfortran (link to the documentation).
我知道您的痛苦-直到我完全迁移到另一个编译器集合之前,我还多次尝试着解决这个问题...
I know your pain - I've also struggled with this problem many times before until I migrated completely to another compilers collection...
这篇关于gfortran错误:意外元素'<'格式字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!