C/C++ Programmer's Guide (G06.25+)

HP C/C++ Programmer’s Guide for NonStop Systems429301-008
21-1
21
Native C and C++ Compiler
Messages
The native C and C++ compilers emit four types of messages:
Catastrophe
Error
Warning
Remark
Native C and C++ compiler messages of these four types are listed in Table 21-1. In
the messages, variables (such as %s, %t, and %sfd) are expanded to represent the
specific source-file elements that triggered the message.
Table 21-1. Native C and C++ Compiler Messages (page 1 of 20)
Message
Number
Message
Type Message Text
101 error last line of file ends without a newline
102 error last line of file ends with a backslash
103 error comment unclosed at end of file
104 error unrecognized token
105 error missing closing quote
106 warning nested comment is not allowed by the standard
107 error “#” not expected here
108 warning,
error
unrecognized preprocessing directive
109 warning parsing restarts here after previous syntax error
110 warning,
error
extra text after expected end of preprocessing directive
111 error expected a “]
112 warning,
error
expected a “)”
113 error extra text after expected end of number
114 warning,
error
%s is undefined
115 remark,
warning,
error
type qualifiers are meaningless in this declaration
116 error invalid hexadecimal number
117 warning integer constant is too large