开发者

Intel Visual Fortran Compiling Error

开发者 https://www.devze.com 2022-12-15 02:35 出处:网络
When I compile a project, Intel Visual Fortran keeps giving me this kind of error. The error is found on the code below:

When I compile a project, Intel Visual Fortran keeps giving me this kind of error. The error is found on the code below:

dimension tairgl(12),eairgl(24),windgl(12),psisgl(12),yenang(98),yunazm(98)

This is the error message given by the compiler.

Error: Syntax error, found END-OF-STATEMENT when expecting one o开发者_C百科f: ( [

Anybody have any idea about this error?


The syntax looks OK. I can think of two possibilities: 1) the compiler is configured to only look at source code to column 72 and this line is longer, 2) the error is somewhere else and the message is misleading. Possibility 1 assumes that you are compiling Fortran 77 with its fixed-form source layout, rather than Fortran 90, or that the compiler is mis-configured for Fortran 90. To fix possibility 1, either split the line with a continuation, split it into two dimension statements, or find the compiler option that causes the compiler to accept longer lines


From the question, it looks like there's a newline after the dimension statement. Is that right? I wouldn't be surprised if that gave an unexpected END-OF-STATEMENT error.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号