Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 ユーザーズマニュアル

製品コード
SW006021-1
ページ / 518
MPLAB
®
 XC8 C Compiler User’s Guide
DS52053B-page 390
 2012 Microchip Technology Inc.
(215) missing argument to pragma "switch" 
(Parser)
The pragma switch requires an argument of auto, direct or simple, for example:
#pragma switch  /* oops -- this requires a switch mode */
maybe you meant something like:
#pragma switch simple
(216) missing argument to pragma "psect" 
(Parser)
The pragma psect requires an argument of the form oldname = newname where old-
name
 is an existing psect name known to the compiler, and newname is the desired 
new name, for example:
#pragma psect  /* oops -- this requires an psect to redirect */
maybe you meant something like:
#pragma psect text=specialtext
(218) missing name after pragma "inline" 
(Parser)
The inline pragma expects the name of a function to follow. The function name must 
be recognized by the code generator for it to be expanded; other functions are not 
altered, for example:
#pragma inline  /* what is the function name? */
maybe you meant something like:
#pragma inline memcpy
(219) missing name after pragma "printf_check" 
(Parser)
The printf_check pragma expects the name of a function to follow. This specifies 
printf-style format string checking for the function, for example:
#pragma printf_check  /* what function is to be checked? */
Maybe you meant something like:
#pragma printf_check sprintf
Pragmas for all the standard printf-like function are already contained in <stdio.h>.
(220) exponent expected 
(Parser)
A floating-point constant must have at least one digit after the e or E., for example:
float f;
f = 1.234e;  /* oops -- what is the exponent? */
(221) hexadecimal digit expected 
(Parser)
After 0x should follow at least one of the HEX digits 0-9 and A-F or a-f, for example:
a = 0xg6;  /* oops -- was that meant to be a = 0xf6 ? */
(222) binary digit expected 
(Parser)
A binary digit was expected following the 0b format specifier, for example:
i = 0bf000;  /* oops -- f000 is not a base two value */
(223) digit out of range 
(Parser, Assembler)
A digit in this number is out of range of the radix for the number, i.e., using the digit 8 
in an octal number, or HEX digits A-F in a decimal number. An octal number is denoted 
by the digit string commencing with a zero, while a HEX number starts with “0X” or “0x”. 
For example:
int a = 058;
/* leading 0 implies octal which has digits 0 - 7 */