Echelon Neuron User Manual

Page 84

Advertising
background image

76

Neuron C Compiler Errors (NCC)

NCC#

Description

237

Unusual use of function address as value [NCC#237]

This message would occur in a situation like the following:

int f(void) {return 0;}
...
int g(void) {
int

x;

x = 1;

if (f) { // Unusual use of function

//

address

x

=

2;

}
return

x;

}

Technically, C permits such a use as shown. Such an expression has little
use in Neuron C, however. The programmer most likely wanted to specify

"if (f( )) { ...". In other words, the syntax of ANSI C permits a construct that

is most likely a programming error, and the Neuron C compiler flags it for
you.

238

File write error - is disk full? [NCC#238]

The compiler encountered an error writing to the output file(s). Check that

the output media is not write-protected, and that sufficient disk space

exists. It is possible, for extremely large programs, that a megabyte or
more of temporary disk space would be needed during compilation.

239

A msg_tag declaration is not permitted if micro_interface [NCC#239}

Once the #pragma micro_interface appears, the program cannot declare

any network variables or message tags.

240

This event expression is not permitted - firmware restriction [NCC#240]

The special event keywords offline, online, and wink cannot be combined
into other expressions when used in the when clause. See the

Additional

Predefined Events

section in the

Neuron C Programmer's Guide

for more

explanation.

243

Keyword 'sync' was ignored for polled output network variable [NCC#243]

A sync output network variable is propagated each time its value is
updated. A polled output network variable is never sent unless a reader

device requests its value with a network variable poll. The two options are

not compatible.

244

Cannot disable netvar_processing with Net Vars declared [NCC#244]

The directive #pragma netvar_processing_off is not permitted once network
variables have already been declared in a program. Likewise, declarations

of network variables are not permitted in a program once this directive has
been encountered. This pragma can only be used with the LonBuilder

Microprocessor Interface Program (MIP).

Advertising