cancel
Showing results for 
Search instead for 
Did you mean: 

problem with array reading

Nyous.1
Associate II

please check the pictures and tell me about this.0693W000003Qzs8QAC.jpg

7 REPLIES 7
Nyous.1
Associate II

0693W000003Qzy6QAC.jpgi assigned array like this

Which compiler is this? Cosmic STM8 compiler?

Is it a C99-compliant compiler?

JW

Nyous.1
Associate II

cosmic smt8 compiler with ST Visual devalop IDE

Nyous.1
Associate II

and amazing thing is, with only few arrays, this error occurs.

all other dont have such error

> all other dont have such error

Show example.

Are the arrays defined in the same file as they are used? Create a minimalistic example exhibiting the problem (and having also the non-problematic example). and show it all.

You may also try Cosmic support/forum, I don't think there is much experience with it here.

JW

Ozone
Lead II

You could check the manual, perhaps the compiler has switches for standards to adhere to.

Or, as Jan suggested, the Cosmic support of forum.

The simplest fix is to define the arrays in the old-fashioned way...

Nyous.1
Associate II

"The simplest fix is to define the arrays in the old-fashioned way..."

can u please explain this??

as shown in last pic, so many arrays are defined but only 2,3 arrays are showing error. all others are ok.

i even changed the names but no any difference.