Skip to main content
Visitor II
September 8, 2020
Question

problem with array reading

  • September 8, 2020
  • 7 replies
  • 1379 views

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

    This topic has been closed for replies.

    7 replies

    Nyous.1Author
    Visitor II
    September 8, 2020

    0693W000003Qzy6QAC.jpgi assigned array like this

    Super User
    September 8, 2020

    Which compiler is this? Cosmic STM8 compiler?

    Is it a C99-compliant compiler?

    JW

    Nyous.1Author
    Visitor II
    September 9, 2020

    cosmic smt8 compiler with ST Visual devalop IDE

    Nyous.1Author
    Visitor II
    September 9, 2020

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

    all other dont have such error

    Super User
    September 9, 2020

    > 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

    Explorer
    September 9, 2020

    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.1Author
    Visitor II
    September 10, 2020

    "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.