Programming Tools Guide
Appendix B, C compiler diagnostics

Appendix B

Appendix B<P> C compiler diagnostics C compiler diagnostics

This chapter contains the text and explanation for all the warning and error messages produced by the compiler. The messages are listed in alphanumeric order (special characters are ignored). Numbers precede capital letters and capital letters precede lowercase letters. n, when it represents a number, comes at the beginning of the list.

The message entries are formatted as follows:

 ------------------------------------------------------------------------
 Entry                                            Comment
 ------------------------------------------------------------------------
 cannot initialize typedef: name                  Text of message.

 Type: Error -- Options:                          Type of message and
 all                                              command-line options
                                                  (see next page)

 A typedef may not have an                        Explanation of message.
 initializer.

 typedef int INT = 1;                             Example of code that
                                                  might generate the
                                                  message.

 "file", line 1: cannot initialize typedef: INT   Message output.

When an error occurs, the error message is preceded by a file name and line number. All message output are one line long (no newline characters). The line number is usually the line on which a problem has been diagnosed. Occasionally the compiler must read the next token before it can diagnose a problem, in which case the line number in the message may be a higher line number than that of the offending line.

Note that lint(CP) issues all the messages listed in this chapter, and additional messages about potential bugs and portability problems.


NOTE: For further information. see Chapter 5, ``lint analyzer''.