-qhalt

Category

Error checking and debugging

Purpose

Stops compilation before producing any object, executable, or assembler source files if the maximum severity of compile-time messages equals or exceeds the severity you specify.

Syntax

Read syntax diagramSkip visual syntax diagram
                  (1).-s-.   
>>- -q--halt--=------+-i-+-------------------------------------><
                     +-l-+   
                     +-w-+   
                     +-e-+   
                     '-u-'   

Notes:
  1. Minimum severity level of messages that will prevent an object file from being created

@PROCESS:

@PROCESS HALT(severity)

Defaults

-qhalt=s, which prevents the compiler from generating an object file when compilation fails.

Parameters

The severity levels (from lowest to highest) are:
i
Informational messages. They explain things that you should know, but they usually do not require any action on your part.
l
Language-level messages, such as those produced under the -qlanglvl option. They indicate possible nonportable language constructs.
w
Warning messages. They indicate error conditions that might require action on your part, but the program is still correct.
e
Error messages. They indicate error conditions that require action on your part to make the program correct, but the resulting program can probably still be executed.
s
Severe error messages. They indicate error conditions that require action on your part to make the program correct, and the resulting program will fail if it reaches the location of the error. You must change the -qhalt setting to make the compiler produce an object file when it encounters this kind of error.
u
Unrecoverable error messages. They indicate error conditions that prevent the compiler from continuing. They require action on your part before you can compile your program.

Usage

The -qhalt option can override the -qobject option, and -qnoobject can override -qhalt.

Related information