Silverfrost Logo About Us | Contact Us
 

Error message options

All error, warning and comment messages are output to the compilation listing file if one is specified or implied, otherwise, these messages are output on the screen. Note that these messages are never simultaneously output to the compilation listing file and on the screen. Messages fall into three categories - error, warning and comment.

The following list includes options for disabling certain messages and options for specifying what constitutes an error.

/132
Prints error messages formatted for 132 column screens.

/ANSI
Old synonym for /ISO option.

/BRIEF
Causes all errors, warnings and comments to be output in a form which is compatible with the SIDE and Borland BRIEF text editors. Programs can then be compiled and then edited whilst still within the editor.

/COLOUR
Compiler output in a Comand Prompt box is coloured. See Silverfrost environment variables to change default settings.

/DELETE_OBJ_ON_ERROR
If /LINK or /LGO is used no permanent object module is created. Otherwise, by default an object module will be generated even when errors are present. /DELETE_OBJ_ON_ERROR overrides the default.

/ERROR_NUMBERS
Error messages are accompanied by their error number.

/ERRORLOG
Creates a file called <filename>.ERR containing a copy of all error and warning messages.

/IGNORE <error number>
Suppresses all errors and warnings with the given number. Error numbers are generated using /ERROR_NUMBERS. Suppressing error numbers is unsafe but may be useful during debugging.

/IMPLICIT_NONE
Fault on IMPLICIT type definitions.

/ISO
Ensures that all constructs used in a program conform to the Fortran 95 ISO Standard. The /ISO option also informs the FTN95 run-time system that ISO-conformity is required. This means that, for example, non-standard use of format descriptors (such as business editing in a run-time format) causes a run-time failure.

/MESSAGE_SET_TO_COMMENT
Sets all compiler diagnostic messages to comment severity.

/MESSAGE_SET_TO_ERROR
Sets all compiler diagnostic messages to error severity.

/MESSAGE_SET_TO_FATAL
Sets all compiler diagnostic messages to fatal severity.

/MESSAGE_SET_TO_SUPPRESS
Applies /IGNORE to all error numbers.

/NO_COMMENT
Suppress compiler comments, but not warnings and errors.

/NO_FAIL
Synonym for /PERSIST.

/NO_OBSOLETE
Suppress reports of obsolete and extension warning messages after the first has been displayed.

/NO_QUIT
Suppresses the simulated quit after a bad compilation. This normally simulates a ^C to halt a batch-file compilation. With this option set

IF ERRORLEVEL 1

must be use to test for compilation failure in a batch file if this option is set, or alternatively

IF NOT EXIST <file>.OBJ

if the /DELETE_OBJ_ON_ERROR option is also used.

/NO_SCALAR_TO_ARRAY
Treats the assignment of a whole array to a scalar value as an error.

/NO_WARN_WIDE
Suppresses warnings for characters appearing in columns 133 (free format) or 73 (fixed format) and beyond in the source file.

/NON_STANDARD
Suppresses compiler messages that warn of syntax that is permitted by the FTN95 compiler but does not conform to the Fortran 95 standard. Such warnings will be converted to errors if /IOS is used. /NON_STANDARD is switched on by default.

/PAUSE_ON_ERROR
Outputs error/warning/comment messages one at a time and waits for a key press after each message.

/PERSIST
By default compilations with errors will terminate as if control break had been pressed. When the command appears in a batch file, the batch process will then be interrupted. If /PERSIST is used, the control break is suppressed and processing of the batch file will continue even when compilation errors have occurred.

/RESTRICT_SYNTAX
Increases compiler strictness to reject dubious code.

/SET_ERROR_LEVEL <code> <number>
Changes the severity of a compiler diagnostic. <code> is Suppress, Comment, Warning, Restricted, Error, or Fatal. <number> is the error number reported by using /ERROR_NUMBERS.

/SILENT
Suppress warning and comment messages. Also when /SILENT is used, the message that is output on the screen at the end of the compilation of a program unit does not include the numbers of warning and comment messages.

/SINGLE_LINE
Only prints the first line of an error message, ignoring any continuations. This is ignored if /BRIEF is specified. Without this option, when an error is reported, the offending line is output together with any continued lines.

/STANDARD_ERROR_REPORTING
Suppress windowed diagnostic information.

/UNLIMITED_ERRORS
Carry on compiling even after 12 error messages.

/WARN_FATAL
All warnings and comments become errors.

/WRAP
Source lines are wrapped rather than truncated when an error or warning is output.

/WIDE_SOURCE
Line-truncation at the 132nd (or 72nd) column is suppressed.

 

 

Copyright © 1999-2017 Silverfrost Limited