Technical data
Compiler Messages [C]
This appendix describes how to use the message system to control and use
messages issued by the compiler. Explanatory texts for messages can be
displayed online through the use of the
explain(1) command, described in
the following section.
For further information about the message system, see the Cray Message System
Programmer’s Guide, or the message system section of the UNICOS System
Libraries Reference Manual. The introduction to that section can be viewed online
as the message(3) man page.
C.1 Expanding Messages with the explain(1) Command
You can use the explain(1) command to display an explanation of any message
issued by the compiler. The command takes as an argument, the message
number, including the number’s prefix. The prefix for Cray Standard C/C++
is CC.
In the following sample dialog, the cc(1) command invokes the compiler on
source file bug.c. Message CC-24 is displayed. The explain(1) command
displays the expanded explanation for this message.
> cc bug.c
CC-24 cc: ERROR File = bug.c, Line = 1
An invalid octal constant is used.
int i = 018;
^
1 error detected in the compilation of "bug.c".
> explain CC-24
An invalid octal constant is used.
Each digit of an octal constant must be between 0 and 7,
inclusive. One or more digits in the octal constant on the
indicated line are outside of this range. To avoid issuing
an error for each erroneous digit, the constant will be treated
as a decimal constant. Change each digit in the octal constant
to be within the valid range.
S–2179–36 173










