
NodeBuilder Errors Guide 5-27
NCC# Description
198 Type mismatch in function parameter [NCC#198]
The compiler outputs these diagnostics when the number of actual
parameters or the actual parameter types, do not match those in the
prototype, and they cannot be automatically converted.
199 Too many parameters passed to function [NCC#199]
The compiler outputs these diagnostics when the number of actual
parameters or the actual parameter types, do not match those in the
prototype, and they cannot be automatically converted.
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, etc.
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.