Initializing help system before first use

Compiler Options

You can configure how Mosel compiles source files in the Compiler Options dialog box.
Configure the following settings:
  • Debugging Information:

    Determines the information which is included in the generated BIM file. Can be one of the following options:

    • Include private object names.

      No command line flags are passed to the Mosel compiler.

    • Remove private object names.

      The -s command line flag is passed to the Mosel compiler. Names of private variables, constraints, and subroutines are not saved into the BIM file.

    • Add debugging information.

      The -g command line flag is passed to the Mosel compiler. This option is required to locate a runtime error.

    • Add debugging and tracing information.

      The -G command line flag is passed to the Mosel compiler. This option is required to run the model with the debugger.

  • Implicit Declarations: Determines the behavior of the Mosel compiler when it encounters a symbol which was not explicitly declared in a declarations block. Can be one of the following options:
    • Allow implicit declarations.

      No command line flags are passed to the Mosel compiler. Implicit declarations are silently accepted.

    • Forbid implicit declarations.

      The -ni command line flag is passed to the Mosel compiler. Implicit declarations cause the compilation to fail with an error.

    • Warn about implicit declarations.

      The -wi command line flag is passed to the Mosel compiler. Implicit declarations are accepted but the compiler will print a warning.

  • Treat Warnings as Errors.

    If checked, the -we command line flag is passed to the Mosel compiler. Compiler warnings are handled like errors such that any warning will make the compilation fail.

  • Generate Doc Annotations.

    If checked, the -D command line flag is passed to the Mosel compiler. Documentation annotations are generated in the resulting BIM file. (By default, documentation annotations are ignored.)

  • Enable Xbim Extension.

    If checked, the -I command line flag is passed to the Mosel compiler. The xbim extension is enabled, causing additional symbol information to be stored in the generated BIM file (in particular array index names).

Note When a model is run from Xpress Workbench, the -g option is automatically added so that stack traces can be displayed if an error occurs. When a model is debugged from Xpress Workbench, the -G option is automatically added.

For more information about Mosel compiler options, see the Mosel Reference Manual.