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(282) functions can’t return arrays (Parser)A function can return only a scalar (simple) type or a structure. It cannot return an array.(283) dimension required (Parser)Only the most significant (i.e. the first) dimension in a multi-dimension array may not be assigned avalue. All succeeding dimensions must be present as a constant expression, e.g.:enum { one = 1, two };int get_element(int array[two][]) /* should be, e.g.: int array[][7] */{return array[1][6];}(285) no identifier in declaration (Parser)The identifier is missing in this declaration. This error can also occur where the compiler has beenconfused by such things as missing closing braces, e.g.:void interrupt(void) /* what is the name of this function? */{}(286) declarator too complex (Parser)This declarator is too complex for the compiler to handle. Examine the declaration and find a wayto simplify it. If the compiler finds it too complex, so will anybody maintaining the code.(287) can’t have an array of bits or a pointer to bit (Parser)It is not legal to have an array of bits, or a pointer to bit variable, e.g.:bit barray[10]; /* wrong -- no bit arrays */bit * bp; /* wrong -- no pointers to bit variables */(288) only functions may be void (Parser)A variable may not be void. Only a function can be void, e.g.:int a;void b; /* this makes no sense */260

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

Saved successfully!

Ooh no, something went wrong!