HP aC++/HP C A.06.25 Programmer's Guide
A Diagnostic Messages
The aC++ compiler can issue a large variety of diagnostics in response to unexpected
situations or suspicious constructs. This appendix presents a summary of these
diagnotics organized into the following sections:
• “aCC Message Catalog” (page 291)
• “Frequently Encountered Messages” (page 292)
aCC Message Catalog
The aCC message catalog is located in the following directory:
/opt/aCC/lib/nls/msg/C/aCC.msgs
The C message catalog is located in the following directory:
/opt/ansic/lib/nls/msg/C/aCC.msgs
Error and warning messages in the aCC Message Catalog can be classified as shown
below:
Command Errors
Command errors are issued when the command line is not correctly formed and the
compiler cannot proceed with compilation.
Command Warnings
Command warnings occur when code is compiled with an unrecognized option.
Fatal Errors
Fatal errors are issued for ill-formed programs that the compiler cannot recover. Syntax
errors usually fall into this category. Object files are not generated if such errors are
encountered.
Future Errors
Future errors are serious warnings that indicate violation of a language rule. However,
the compiler continues to generate code. You must resolve these errors, as they may
result in other cumulative errors. Use the +p option (pedantic mode) to convert these
warnings into hard errors.
Anachronisms
Anachronisms are warnings that diagnose ISO/ANSI C++ language violation. Code
that triggers anachronisms was previously considered legal.
aCC Message Catalog 291