PRB: L2029 Error, FGRAPH.FD, FGRAPH.FI Files Used Incorrectly (48025)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 5.0
- Microsoft FORTRAN Compiler for MS-DOS 5.1
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
This article was previously published under Q48025 SYMPTOMS
An attempt to link an application fails and an L2029 unresolved
externals error occurs.
CAUSE
The FGRAPH.FI file is placed at the beginning of the main file and
FGRAPH.FD is placed in a subroutine in a separate file. This cause
applies ONLY when the symbol name is a graphics function, and it is
in all capitol letters with no leading underscore.
RESOLUTION
Modify the source code to include the FGRAPH.FI file (the INTERFACE
statements) at the beginning of each file that contains a graphics
call. Include the FGRAPH.FD file (the variable declarations) in
each subroutine that calls a graphics routine.
This behavior does not occur with FORTRAN PowerStation. Sample 1 below
builds without error.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | KB48025 |
---|
|