SW500009 Microchip Technology, SW500009 Datasheet - Page 322

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
(279) initialization of function arguments is illegal
A function argument can’t have an initialiser in a declaration. The initialisation of the argument
happens when the function is called and a value is provided for the argument by the calling function,
e.g.:
(280) arrays of functions are illegal
You can’t define an array of functions. You can however define an array of pointers to functions,
e.g.:
(281) functions can’t return functions
A function cannot return a function. It can return a function pointer. A function returning a pointer
to a function could be declared like this: int (* (name()))(). Note the many parentheses that are
necessary to make the parts of the declaration bind correctly.
(282) functions can’t return arrays
A function can return only a scalar (simple) type or a structure. It cannot return an array.
(283) dimension required
Only the most significant (i.e. the first) dimension in a multi-dimension array may not be assigned a
value. All succeeding dimensions must be present as a constant expression, e.g.:
(284) invalid dimension
This is an internal compiler error. Contact HI-TECH Software technical support with details.
308
/* woops -- a is initialized when proc is called */
extern int proc(int a = 9);
int * farray[](); /* woops -- should be: int (* farray[])(); */
enum { one = 1, two };
int get_element(int array[two][]) /* should be, e.g.: int array[][7] */
{
}
return array[1][6];
Error and Warning Messages
(Parser)
(Parser)
(Parser)
(Parser)
(Parser)
(Parser)

Related parts for SW500009