11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Error and Warning Messages(221) hex digit expected (Parser)After 0x should follow at least one of the hex digits 0-9 and A-F or a-f, e.g.:a = 0xg6; /* woops -- was that meant to be a = 0xf6 ? */(222) binary digit expected (Parser)A binary digit was expected following the 0b format specifier, e.g.i = 0bf000; /* wooops -- f000 is not a base two value */(223) digit out of range (Parser, Assembler, Optimiser)A digit in this number is out of range of the radix for the number, e.g. using the digit 8 in an octalnumber, or hex digits A-F in a decimal number. An octal number is denoted by the digit stringcommencing with a zero, while a hex number starts with "0X" or "0x". For example:int a = 058; /* a leading 0 implies octal which has digits 0 thru 7 */(225) missing character in character constant (Parser)The character inside the single quotes is missing, e.g.:char c = ”; /* the character value of what? */(226) char const too long (Parser)A character constant enclosed in single quotes may not contain more than one character, e.g.:c = ’12’; /* woops -- only one character may be specified */(227) "." expected after ".." (Parser)The only context in which two successive dots may appear is as part of the ellipsis symbol, whichmust have 3 dots. (An ellipsis is used in function prototypes to indicate a variable number of parameters.)Either .. was meant to be an ellipsis symbol which would require you to add an extra dot, or itwas meant to be a structure member operator which would require you remove one dot.248

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!