关于使用Intel Fortran编译器出现的错误fortcom: Error: ……………………

ying__223223 2008-12-26 02:34:14
在RHEL系统下,用Intel Fortran编译器10.1和9.1编译软件,都出现了很多类似的错误:请高手们指点
fortcom: Error: pwrite3.f, line 282: Syntax error, found END-OF-STATEMENT when expecting one of: = .EQV. .NEQV. .XOR. .OR. .AND. .LT. < .LE. <= .EQ. == .NE. /= .GT. > ...
CALL MPI_BCAST ( PWRITE3, 1, MPI_LOGICAL, 0, MPI_COMM_WORLD, ERROR )
--------------------------------------------------------------------------^
fortcom: Error: pwrite3.f, line 194: This name does not have a type, and must have an explicit type. [ER]
CALL MPI_BCAST ( UPNAM3D, 16, MPI_CHARACTER, 0, MPI_COMM_WORLD, ERROR )
----------------------------------------------------------------------^
fortcom: Error: pwrite3.f, line 267: An ENDIF occurred without a corresponding IF THEN or ELSE statement.
END IF
---------------^
fortcom: Error: pwrite3.f, line 269: An ENDDO statement occurred without a corresponding DO or DO WHILE statement.
END DO
------------^
fortcom: Error: pwrite3.f, line 271: An ENDIF occurred without a corresponding IF THEN or ELSE statement. END IF ! fake-gridded
---------^
fortcom: Error: pwrite3.f, line 273: An ELSE statement occurred without a corresponding IF THEN statement.
ELSE ! This is not a gridded file.
------^
fortcom: Error: pwrite3.f, line 280: An ENDIF occurred without a corresponding IF THEN or ELSE statement.
END IF ! gridded file------^

还有warning:
ifort: command line warning #10006: ignoring unknown option '-Mfixed'
ifort: command line warning #10006: ignoring unknown option '-Mextend'
...全文
1571 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
intel_iclifort 2008-12-26
  • 打赏
  • 举报
回复
用g77/gfortran能编译通过么? 看上去是语法错误啊,pwrite3.f, line 282

还有,如果你是MPI程序,需要用MPI库提供的Fortran脚本来编译程序,它会自动调用gfortran或者ifort

567

社区成员

发帖
与我相关
我的任务
社区描述
英特尔® 边缘计算,聚焦于边缘计算、AI、IoT等领域,为开发者提供丰富的开发资源、创新技术、解决方案与行业活动。
社区管理员
  • 英特尔技术社区
  • shere_lin
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧