I have a .h file with lots of entries like this:
static const char v1a[] PROGMEM="OUS_";
After several entries, there is an entry like this:
static const VOCAB PROGMEM s_vocab[] ={
{ v1a, v1b} ,{ v2a, v2b}, { v3a, v3b},{ v4a, v4b},{ v5a, v5b},{ v6a, v6b},{ v7a, v7b},{ v8a, v8b},{ v9a, v9b},{ v10a, v10b},..... and so on.... };
Then in the code, s_vocab is used.
When compiling, I get an error like this for every entry where PROGMEM is used:
C:\DOCUME~1\Gabi\LOCALS~1\Temp\build63463.tmp\/english.h:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
Then I get this error:
error: 's_vocab' undeclared (first use in this function) In function xxx
I have tried to make a library, but the s_vocab gets out of scope (I don't get the PROGMEM errors in this case).
Any advice would be very appreciate!
Thanks!