PRB: Compilation Errors--$FREEFORM & Graphics Subroutine CallsLast reviewed: July 18, 1995Article ID: Q50595 |
The information in this article applies to:
SYMPTOMSAn attempt to compile an application that uses the $FREEFORM metacommand and calls the FORTRAN graphics run-time library fails.
CAUSEThe FGRAPH.FD and FGRAPH.FI files do not conform to the $FREEFORM format.
RESOLUTIONIf you must use the $FREEFORM metacommand, you must modify the FGRAPH.FD and FGRAPH.FI files. We recommend that you create customized include files that contain only the information that pertains to the graphics routines your application calls.
MORE INFORMATIONThe following code example uses the $FREEFORM metacommand and calls a subroutine in the FORTRAN graphics library.
Sample CodeC Compile options needed: None
$FREEFORM include 'OHMAN.FI' subroutine mysub() include 'OHMAN.FD' call setlinestyle(#AA3C) endFor this particular example, the OHMAN.FI file contains the subset of FGRAPH.FI that pertains to the setlinestyle subroutine. OHMAN.FI is as follows: INTERFACE TO SUBROUTINE setlinestyle[FAR,C,ALIAS:"__setlinestyle"] (mask) INTEGER*2 mask END Likewise, the OHMAN.FD file contains the subset of FGRAPH.FD that pertains to the setlinestyle subroutine. OHMAN.FD is as follows:
EXTERNAL setlinestyle |
Additional reference words: 5.00 5.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |