PRB: F4998: "Variable Used But Not Defined" in Intrinsic FuncsLast reviewed: July 18, 1995Article ID: Q51295 |
The information in this article applies to:
SYMPTOMSWhen the FORTRAN compiler processes a source code file, it produces the following warning message:
F4998: variable used but not defined CAUSEThe file contains a variable that is used as an argument in an intrinsic function before it is assigned a value.
RESOLUTIONThis behavior is expected and serves as a warning.
MORE INFORMATIONThe following list of intrinsic functions are confirmed to produce this warning message:
abs, exp, ior, loc, locfar, locnear, log, max, mod, not, sin, sqrt, tanThe following code example demonstrates this warning message.
Sample Code #1C Compile options needed: None
REAL TMP WRITE (*, *) SIN(TMP) ENDThe following code example eliminates this warning message by assigning a value to TMP before using it as an argument to an intrinsic function.
Sample Code #2C Compile options needed: None
REAL TMP TMP = 1 WRITE (*, *) SIN(TMP) END |
Additional reference words: 1.00 5.00 5.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |