Echelon Neuron User Manual

Page 72

Advertising
background image

64

Neuron C Compiler Errors (NCC)

NCC#

Description

153

I/O function not valid for this I/O object [NCC#153]

Some built-in functions, such as io_set_clock( ) and io_select( ), cannot be

used on all I/O object types.

154

This event cannot be duplicated [NCC#154]

There are three special events in Neuron C which can only appear in at
most one when clause. These events are reset, offline, and online.

155

The ‘priority’ is ignored for this ‘when’ clause [NCC#155]

There are three special events in Neuron C, namely reset, offline, and

online, for which the declaration of priority has no effect. This is because,
due to the special times at which these clauses are executed, they always

have priority.

156

Function must return a value [NCC#156]

The function, whose declared return data type is

not

void, does not have a

return statement (in every possible path to the end of the function) that
returns a value of the appropriate type.

157

Expression for switch must be a ‘short’ [NCC#157]

The switch statement can handle values only in the range of the int data

type, which is from -128 to 127 inclusive in Neuron C.

158

Improper context for ‘break’ statement [NCC#158]

A break statement can only occur inside a do, for, or while loop, or inside a
switch statement.

159

Object being declared cannot be initialized [NCC#159]

Declaration-time initialization cannot be used for typedefs, timer objects,

message tags, function parameters, structure tags, union tags, and enum

tags.

160

This declaration may only be at file scope [NCC#160]

Some Neuron C objects may only be declared at file scope. Thus, they are
restricted to being globals, not automatics. These objects are timer objects,

message tags, I/O objects, and network variables.

161

Type mismatch in function redeclaration [NCC#161]

This diagnostic indicates that a function prototype does not match a

subsequent prototype, or the definition of the function. The prototypes and
definition must match in terms of their storage class (for example, static,

eeprom, ram) as well as their return types and their number and types of
parameters.

Advertising