PRB: F2347 or F2201 Error When Function Is Not Typed (123689)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 5.1
- Microsoft FORTRAN PowerStation for MS-DOS 1.0
- Microsoft FORTRAN PowerStation for MS-DOS 1.0a
- Microsoft Fortran Powerstation 32 for Windows NT 1.0
- Microsoft Fortran Powerstation 32 for Windows NT 4.0
This article was previously published under Q123689 SYMPTOMS
When compiling, you receive the following error message:
F2347: <function name> : missing Type
You may also receive the following error message:
F2201: <function name> : Type redefined
Error F2347 is not documented in the Microsoft FORTRAN Professional
Development System version 5.1.
CAUSE
The return type of a FORTRAN function must be declared in the calling
scope. If the type is not defined, implicit typing will occur. If you use
the IMPLICIT NONE statement, you will receive the F2347 error. If you do
not use the IMPLICIT NONE statement and the implicit typing does not agree
with the formal declaration of the function, you will receive the F2201
error.
RESOLUTION
Provide explicit typing for FORTRAN functions, as in the code sample below.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/2/2003 |
---|
Keywords: | kberrmsg KB123689 |
---|
|