Menu

#2563 Initializer element is not a compile-time constant

closed-rejected
nobody
None
other
9
2017-01-26
2016-11-23
No

error 2: Initializer element is not a compile-time constant

SDCC brings this error but with MPLAB it is compiled without error.

1 Attachments

Discussion

  • Bogdan Pawlak

    Bogdan Pawlak - 2016-11-29

    Everything is O.K when you RomStringsAddress in VariableInMenueInfo_type structur
    as __code char * define.

    The structur now:

    typedef struct
    {
    unsigned short *VarAdresse;
    unsigned char VarLaenge;
    unsigned char Erscheinung;
    __code char * RomStringsAdresse;
    }VariablenInMenueInfo_typ;

    It runs! Thanks for SDCC !!

     

    Last edit: Bogdan Pawlak 2016-11-29
  • Ben Shi

    Ben Shi - 2017-01-26
    • status: open --> closed-rejected
     
  • Ben Shi

    Ben Shi - 2017-01-26

    gcc gave the same error.

     

Log in to post a comment.

MongoDB Logo MongoDB