The information in this article applies to:
SYMPTOMSWhen compiling a program with Microsoft FORTRAN version 5.1 under MS-DOS or OS/2, the following error may be generated during the second pass of the compiler: Compiling with FORTRAN version 5.0, the following error is produced: Compiling with FORTRAN versions 4.1 and 4.01, the following error is produced: Compiling with FORTRAN version 4.0, the following error is produced:
CAUSEThe program was compiled with the /Od and /ND<segmentname> options, and also utilized the IAND and IOR intrinsic functions on the same executable statement. For this error to occur, these functions must operate on two arrays that are in COMMON, one of the arrays must be greater than 65,532 bytes, and the value returned by the IAND and IOR operation must be set equal to one of the arrays used within the operation, dimensioned by a variable (see sample code below). RESOLUTIONSetting the outcome of the IAND and IOR operation to a temporary variable or eliminating the /ND or /Od compile option will avoid this error message. STATUS
Microsoft has confirmed this to be a problem in Microsoft FORTRAN versions
4.0, 4.01, 4.1, 5.0 and 5.1.
MORE INFORMATIONThe following code reproduces the problem when compiled with the /Od and /ND<segmentname> options (where <segmentname> is a character string naming a data segment: Sample Code #1
The following code illustrates how to set the outcome of the IAND and IOR
operation to a temporary variable:
Sample Code #2
Additional query words: nofps 4.00 4.01 4.10 5.00 5.10
Keywords : |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |