The information in this article applies to:
SYMPTOMSWhen compiling, you receive the following error message: You may also receive the following error message: Error F2347 is not documented in the Microsoft FORTRAN Professional Development System version 5.1. CAUSEThe 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. RESOLUTIONProvide explicit typing for FORTRAN functions, as in the code sample below. STATUSThis behavior is by design. MORE INFORMATION
Compiling the sample code that follows will generate the F2201 error.
Removing the comment on the IMPLICIT NONE line will cause it to generate
the F2347 error in addition to the F2201 error. Removing the comment on the
INTEGER func line will resolve both errors.
The following error message is displayed if you uncomment the IMPLICIT NONE line:
Sample Code to Demonstrate Behavior
Additional query words: 5.10 1.00 1.00a 4.00 docerr errmsg err msg
Keywords : kberrmsg |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |