Conditionally Compiling Metacommands in FORTRAN Code (49466)
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 PowerStation for MS-DOS 1.0
- Microsoft FORTRAN PowerStation for MS-DOS 1.0a
- Microsoft Fortran Powerstation 32 for Windows NT 1.0
- Microsoft Fortran Powerstation 32 for Windows NT 4.0
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
This article was previously published under Q49466 SUMMARY
You can conditionally compile metacommands in FORTRAN source code. However,
you cannot use the /4cc compiler option switch to do so because the
metacommand requires its dollar sign ($) in the first column of the source
line while the /4cc switch requires a character specifier as the first
character of the source line.
To conditionally compile code involving metacommands, use the $DEFINE
metacommand or the /D compiler option switch with the $IF, $ELSEIF, $ELSE,
and $ENDIF metacomands. For more information, see pages 281-284 and page
335 of the Microsoft FORTRAN "Reference" manual for versions 5.0 and 5.1 or
the FORTRAN PowerStation Language Help.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbLangFortran KB49466 |
---|
|