Download 80C196 C Compiler User`s Guide

Transcript
Chapter 9
9–12
9.4 ERROR MESSAGES
Error messages have the following syntax:
*** Error at line nn of filename: message
where:
filename
is the name of the primary source file or include file in which
the error occurred.
nn
is the source line number where the error is detected.
message
is the explanation.
Following is an alphabetic list of error messages.
# operator missing macro argument operand
The # operator must be followed by a macro argument.
## operator occurs at beginning or end of macro body
The ## (token concatenation) operator is used to paste together adjacent
preprocessing tokens, so it cannot be used at the beginning or end of a
macro body.
address out of range
MESSAGES
The constant expression used as the absolute address is greater than
0xFFFF (0xFFFFFF for a 24-bit model). This error can only occur if you
are dereferencing a constant expression; for example, the following code
generates the error:
*( (char *) 0x10000) = 5;
/* 0x10000 is > 0xFFFF. */
anonymous parameter
An argument in a function definition is prototyped but not named.
arguments not allowed
Arguments were passed to a function that does not accept arguments.
array too large
This error occurs when the size of an array exceeds 64 kilobytes.