error 2: Initializer element is not a compile-time constant
SDCC brings this error but with MPLAB it is compiled without error.
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 !!
gcc gave the same error.
Log in to post a comment.
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
gcc gave the same error.