Echelon NodeBuilder Errors 3120 User Manual Page 46

  • Download
  • Add to my manuals
  • Print
  • Page
    / 123
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 45
5-26 Neuron C Compiler Errors (NCC)
NCC# Description
191 Object of call is not a function [NCC#191]
The syntax encountered is function call syntax, i.e.:
expression ( [ expression-list ] )
however, the expression being called is not a function (or a pointer to
a function). Note that this error could occur by omitting an operator.
If the following were intended:
int a, b, c, d;
a = b * (c + d);
but the following were actually written (omitting the multiplication
operator):
int a, b, c, d;
a = b (c + d);
This would appear to be a function call, but b is not a function.
192 Call to function without prototype [NCC#192]
Neuron C is more restrictive than ANSI C in this area. The Neuron
Chip's
stack machine architecture does not permit calling undeclared
functions with unknown numbers of parameters.
193 Function does not allow parameters [NCC#193]
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.
194 Not enough parameters passed to function [NCC#194]
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.
195 Object cannot be a function parameter [NCC#195]
Objects that have no type (such as message tags or I/O objects)
cannot be function parameters. Likewise, if p were declared void *,
*p would not be a valid function parameter (nor would it be any
other valid expression, for that matter).
196
Cannot convert address of const into non-const pointer
[NCC#196]
To prevent data that is declared const from being modified, Neuron
C will not permit pointers including the const attribute from being
cast such that the const attribute is removed. Neither does the
compiler permit an implicit conversion of pointer (via function call,
etc.) such that the const attribute would be removed. However, these
changes are permitted (and this message will appear as a warning
rather than an error) if the compiler directive #pragma
relaxed_casting_on is specified in the program. See the Compiler
Directives chapter of the Neuron C Reference Guide for more details.
197 Implicit pointer conversion is not permitted [NCC#197]
ANSI C does not permit a pointer of one type to be implicitly
converted to a pointer of another type by assignment or by passing as
a function parameter. Use explicit casting.
Page view 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 122 123

Comments to this Manuals

No comments