Chapter Contents

Previous

Next
Compiling C Programs

Compiler Return Codes

The compiler detects syntax and semantic errors during compilation and generates a return code for error conditions and warnings. These codes are summarized in Compiler Return Codes.

Compiler Return Codes
Code Meaning
0 No errors or warnings found; object code is generated.
4 Warning: object code is generated and will probably execute correctly.
8 Serious error: object code is generated but may not execute correctly.
12 Serious error: no object code is generated, and pass two of the compiler is not executed.
16 Fatal error: compilation immediately terminates.
20 Fatal error: an abend or internal compiler error occurred. Compilation stops and a dump may be produced.

Note:    Under USS, the -mrc compiler option requests that the compiler return the same return codes as on OS/390 and CMS. If -mrc is not specified, the compiler conforms to UNIX conventions and returns 0 if there were no errors and a non-zero code if errors were detected.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.