SW500008 Microchip Technology, SW500008 Datasheet - Page 327

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
Error and Warning Messages
A typecast does not yield an lvalue, e.g.:
However you can write this using pointers:
(203) illegal operation on a bit variable
Not all operations on bit variables are supported. This operation is one of those, e.g.:
(204) void function cannot return value
A void function cannot return a value. Any return statement should not be followed by an expres-
sion, e.g.:
(205) integral type required
This operator requires operands that are of integral type only.
(206) illegal use of void expression
A void expression has no value and therefore you can’t use it anywhere an expression with a value
is required, e.g. as an operand to an arithmetic operator.
(207) simple type required for *
A simple type (i.e. not an array or structure) is required as an operand to this operator.
(int)c = 1;
*(int *)&c = 1
bit
int * ip;
ip = &b; /* woops -- cannot take the address of a bit object */
void run(void)
{
}
step();
return 1;
b;
/* the contents of c cast to int is only a intermediate value */
/* either run should not be void, or remove the 1 */
(Parser)
(Parser)
(Parser)
(Parser)
(Parser)
313

Related parts for SW500008