Fixed the original problem by reversing the position of the PROGMEM in the declaration, like this:
static const VOCAB s_vocab[] PROGMEM={...};
Now I have other errors.
In the core.c file I have a struct like this:
typedef struct Vocab {
const char* txt;
const char* phoneme;
} VOCAB;
As I read about structs, I have a struct called Vocab with 2 members and an object VOCAB (I think...). Then, in the .h file I have the VOCAB declared as:
static const VOCAB s_vocab[] PROGMEM={....};
However, I get this error at compile:
C:\DOCUME~1\Gabi\LOCALS~1\Temp\build63463.tmp\/english.h:785: error: expected '=', ',', ';', 'asm' or '__attribute__' before 's_vocab'
If I add '=' like this:
static const VOCAB=s_vocab[] PROGMEM={....}
I get this errors:
C:\DOCUME~1\Gabi\LOCALS~1\Temp\build63463.tmp\/english.h:785: error: 's_vocab' undeclared here (not in a function)
C:\DOCUME~1\Gabi\LOCALS~1\Temp\build63463.tmp\/english.h:785: error: expected expression before ']' token
error: 'VOCAB' redeclared as different kind of symbolC:\DOCUME~1\Gabi\LOCALS~1\Temp\build63463.tmp\/english.h:785: error: previous definition of 'VOCAB' was here
and it highlights the end of the struct declaration in the .c file.
Any ideas how to fix this?
Thank you for any help!