Echelon Neuron User Manual
Page 79
Neuron Tools Errors Guide
71
NCC#
Description
200
Type mismatch in assignment expression [NCC#200]
These error diagnostics result from combining expressions of conflicting
types, such as assigning an int to a pointer, or a pointer of one type to a
pointer to another type, or in using objects that have no value (such as
message tags or I/O object names) in expressions.
In many cases in ANSI C, you must use an explicit type cast. However,
note that casting should be avoided if possible, as it is often poor
programming practice.
201
Invalid use of pointer in binary operation [NCC#201]
The only binary operations permitted on pointers are +, -, and comparisons.
A pointer can be added to a constant (or vice versa), and ANSI C scaling
rules apply to the constant. Likewise, a constant can be subtracted from a
pointer (but
not
vice versa). Finally, two pointers of the same type can be
subtracted, one from the other. The result is a difference scaled by the size
of the object type pointed to. Pointers cannot be used in unary expressions
other than with increment and decrement operators.
202
Type mismatch for binary operation [NCC#202]
This error can occur when the types of the operands being combined in the
binary operation are not compatible. For example, adding an int to a
structure, or comparing a pointer to a char, and so on.
203
Invalid type for subscript operation [NCC#203]
The object being subscripted (the “array”) must be either an array or a
pointer. The type of the subscript must be an integer type.
204
Invalid type for array index [NCC#204]
The array index of the subscript operator must be an int or char type. It
may be short or long, signed or unsigned.
205
Invalid operation on pointer [NCC#205]
The only binary operations permitted on pointers are +, -, and comparisons.
A pointer can be added to a constant (or vice versa), and ANSI C scaling
rules apply to the constant. Likewise, a constant can be subtracted from a
pointer (but
not
vice versa). Finally, two pointers of the same type can be
subtracted, one from the other. The result is a difference scaled by the size
of the object type pointed to. Pointers cannot be used in unary expressions
other than with increment and decrement operators.
206
Invalid indirection expression - not a pointer [NCC#206]
This error occurs when the operand of the * indirection operator is not a
pointer. This operator can only be applied to a pointer variable or a
constant typed as a pointer.