Compiler return codes

At the end of compilation, the compiler sets the return code to zero under any of the following conditions:

Otherwise, the compiler sets the return code to one of the following values:

Return code Error type
1 Any error with a severity level higher than the setting of the -qhalt compiler option has been detected.
40 An option error or an unrecoverable error has been detected.
41 A configuration file error has been detected.
250 An out-of-memory error has been detected. The xlc++ command cannot allocate any more memory for its use.
251 A signal-received error has been detected. That is, an unrecoverable error or interrupt signal has occurred.
252 A file-not-found error has been detected.
253 An input/output error has been detected: files cannot be read or written to.
254 A fork error has been detected. A new process cannot be created.
255 An error has been detected while the process was running.
Note:
Return codes may also be displayed for runtime errors. For example, a runtime return code of 99 indicates that a static initialization has failed.