Echelon Neuron User Manual

Page 73

Advertising
background image

Neuron Tools Errors Guide

65

NCC#

Description

162

Array must have bound [NCC#162]

Use of the array type in a declaration must include a constant expression

which is the array bound. The only time this bound may be omitted is in
the declaration of a function parameter. In this case, use of the bound is

ignored, and the parameter is actually treated as a pointer.

163

164

Invalid struct/union field declaration [NCC#163]

Invalid struct/union field type [NCC#164]

A field in a struct or union may not have a storage class, and may not

contain the word typedef. Nor can it be a message tag, a timer object, nor a

network variable, nor can it have bind_info. Note also that a union may
not contain bitfields.

165

Invalid type for bitfield [NCC#165]

A bitfield may only be declared using only a combination of the type

keywords int, signed, unsigned, long, short, and char. Bitfields may not be

arrays, pointers, structures, or any other Neuron C type.

166

Field name in struct/union cannot be repeated [NCC#166]

Each field name at a given level of a struct or union declaration must be
unique. Names are case sensitive.

167

Extern declarations cannot have initializers [NCC#167]

The semantics of an extern declaration and an initialized declaration are

incompatible. An extern declaration is intended to reference an object
defined elsewhere (usually in another module, although it may be a forward

reference). An initialized declaration is intended to be the defining

declaration of the object. Only one such initialized declaration should
appear for each object.

168

Const variables require initialization [NCC#168]

A variable declared with the const attribute must have an initializer. Note

that this does

not

apply to a typedef that includes the const attribute.

169

Call to ‘io_out’ requires output value parameter [NCC#169]

The built-in function call io_out( ), which is used to initiate an output to a

Neuron I/O object, must be given at least two parameters, the first being
the I/O object name, and the second being the value to be output.

Advertising