英特尔Visual Fortran编译错误 [英] Intel Visual Fortran Compiling Error

查看:173
本文介绍了英特尔Visual Fortran编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编译一个项目时,英特尔Visual Fortran一直给我这种错误。在下面的代码中发现错误:

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

这是编译器。

 错误:语法错误,期待以下其中一项时发现END-OF-STATEMENT:([

有人对这个错误有什么想法吗? 我可以想到两种可能性:1)编译器被配置为仅查看第72列的源代码,并且该行较长,2)错误在其他地方,消息是误导。可能性1假设您正在使用固定格式的源布局编译Fortran 77,而不是Fortran 90,或者编译器针对Fortran 90进行了错误配置。要修复可能性1,可以使用延续将其拆分为两个维度语句,或找到导致编译器接受更长行的编译器选项


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 of: ( [

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

这篇关于英特尔Visual Fortran编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆