The OPTIONS directive

The OPTIONS compiler directive provides a means of specifying many but not all of the compiler options within a source file. For example:


could appear in a file instead of using the command line options /SILENT and /DREAL.

  • An OPTIONS directive can only appear before the first program unit, or between program units, in a source file.

  • There is no limit to the number of OPTIONS directives that can appear in the source file.

  • When invoking the compiler from a command line in a Command Prompt window, there are three methods for configuring the compiler and their order of precedence is significant. Default compiler options, configured by using the command FTN95 /CONFIG, are read first and are superseded by any command line compiler options (including those presented via a /OPTIONS file). These in turn are superseded by any compiler directives given in the program.



Copyright © 1999-2021 Silverfrost Limited