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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Error and Warning Messages}int input;input = get_value(6); /* woops -- the parameter should not be here */(186) too many arguments (Parser)This function does not accept as many arguments as there are here.void add(int a, int b);add(5, 7, input); /* this call has too many arguments */(187) too few arguments (Parser)This function requires more arguments than are provided in this call, e.g.:void add(int a, int b);add(5); /* this call needs more arguments */(188) constant expression required (Parser)In this context an expression is required that can be evaluated to a constant at compile time, e.g.:int a;switch(input) {case a: /* woops -- you cannot use a variable as part of a case label */input++;}(189) illegal type for array dimension (Parser)An array dimension must be either an integral type or an enumerated value.int array[12.5]; /* woops -- twelve and a half elements, eh? */(190) illegal type for index expression (Parser)An index expression must be either integral or an enumerated value, e.g.:int i, array[10];i = array[3.5]; /* woops -- exactly which element do you mean? */242

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

Saved successfully!

Ooh no, something went wrong!