problem with array reading
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-08 12:51 AM
please check the pictures and tell me about this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-08 1:00 AM
i assigned array like this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-08 7:33 AM
Which compiler is this? Cosmic STM8 compiler?
Is it a C99-compliant compiler?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-08 10:50 PM
cosmic smt8 compiler with ST Visual devalop IDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-08 10:52 PM
and amazing thing is, with only few arrays, this error occurs.
all other dont have such error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-08 11:48 PM
> 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 12:40 AM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-09 11:55 PM
"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.
