Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
英特尔Visual Fortran编译错误_Fortran_Intel Fortran - Fatal编程技术网

英特尔Visual Fortran编译错误

英特尔Visual Fortran编译错误,fortran,intel-fortran,Fortran,Intel Fortran,当我编译一个项目时,“英特尔Visual Fortran”总是给我这种错误。在以下代码中发现错误: dimension tairgl(12),eairgl(24),windgl(12),psisgl(12),yenang(98),yunazm(98) 这是编译器给出的错误消息 Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( [ 有人知道这个错误吗?语法看起来不错。我可以想到两种可能性:1)编译器配置为只

当我编译一个项目时,“英特尔Visual Fortran”总是给我这种错误。在以下代码中发现错误:

dimension tairgl(12),eairgl(24),windgl(12),psisgl(12),yenang(98),yunazm(98)
这是编译器给出的错误消息

Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( [

有人知道这个错误吗?

语法看起来不错。我可以想到两种可能性:1)编译器配置为只查看第72列的源代码,这一行较长;2)错误在其他地方,消息具有误导性。可能性1假设您使用固定格式的源代码布局编译Fortran 77,而不是Fortran 90,或者编译器错误地配置为Fortran 90。若要修复可能性1,请使用continuation拆分该行,将其拆分为二维语句,或者找到使编译器接受较长行的编译器选项。语法看起来正常。我可以想到两种可能性:1)编译器配置为只查看第72列的源代码,这一行较长;2)错误在其他地方,消息具有误导性。可能性1假设您使用固定格式的源代码布局编译Fortran 77,而不是Fortran 90,或者编译器错误地配置为Fortran 90。要修复可能性1,可以使用一个continuation拆分该行,将其拆分为两个维度语句,或者找到导致编译器接受问题中较长行的编译器选项,看起来维度语句后面有一个换行符。是这样吗?如果这会导致意外的语句结束错误,我不会感到惊讶。

从问题来看,维度语句后面似乎有一个换行符。是这样吗?如果这会导致意外的语句结束错误,我也不会感到惊讶