关于使用Intel Fortran编译器出现的错误fortcom: Error: ……………………
在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'