Ben les codes d'exemples fournis avec MENWIZ, pour commencer.
Les erreurs sont les mêmes pour les 2 examples fournis en version 1_2_0:
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp: In member function 'void menwiz::drawMenu(_menu*)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:29:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
#define TSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s); b[strlen(b)]=' ';itoa(cur_menu->cur_item+1,tmp,10);strcat(tmp,"/");itoa(cur_menu->idx_o,tmp+strlen(tmp),10);b[col-strlen(tmp)-1]=126;memcpy(b+(col-strlen(tmp)),tmp,strlen(tmp));b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
TSFORM(buf,mc->label,(int) col);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:29:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
#define TSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s); b[strlen(b)]=' ';itoa(cur_menu->cur_item+1,tmp,10);strcat(tmp,"/");itoa(cur_menu->idx_o,tmp+strlen(tmp),10);b[col-strlen(tmp)-1]=126;memcpy(b+(col-strlen(tmp)),tmp,strlen(tmp));b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
TSFORM(buf,mc->label,(int) col);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:29:53: error: expected primary-expression before 'const'
#define TSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s); b[strlen(b)]=' ';itoa(cur_menu->cur_item+1,tmp,10);strcat(tmp,"/");itoa(cur_menu->idx_o,tmp+strlen(tmp),10);b[col-strlen(tmp)-1]=126;memcpy(b+(col-strlen(tmp)),tmp,strlen(tmp));b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
TSFORM(buf,mc->label,(int) col);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:29:53: error: expected ')' before 'const'
#define TSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s); b[strlen(b)]=' ';itoa(cur_menu->cur_item+1,tmp,10);strcat(tmp,"/");itoa(cur_menu->idx_o,tmp+strlen(tmp),10);b[col-strlen(tmp)-1]=126;memcpy(b+(col-strlen(tmp)),tmp,strlen(tmp));b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
TSFORM(buf,mc->label,(int) col);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
#define FSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
FSFORM(buf,mc->label,(int) col);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
#define FSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
FSFORM(buf,mc->label,(int) col);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:53: error: expected primary-expression before 'const'
#define FSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
FSFORM(buf,mc->label,(int) col);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:53: error: expected ')' before 'const'
#define FSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
FSFORM(buf,mc->label,(int) col);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:403:28: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
strcpy_P(&buf[1],(const prog_char*)mn->label);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:403:28: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:403:22: error: expected primary-expression before 'const'
strcpy_P(&buf[1],(const prog_char*)mn->label);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:403:22: error: expected ')' before 'const'
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
#define FSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:53: error: expected ')' before 'const'
#define FSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:496:19: note: in expansion of macro 'FSFORM'
FSFORM(buf,op->label,(int) col-1);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp: In member function 'void menwiz::drawList(_menu*, int)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
#define FSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:567:3: note: in expansion of macro 'FSFORM'
FSFORM(buf,((_option*)mc->o[i])->label,(int)cw-1);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
#define FSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:567:3: note: in expansion of macro 'FSFORM'
FSFORM(buf,((_option*)mc->o[i])->label,(int)cw-1);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:53: error: expected primary-expression before 'const'
#define FSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:567:3: note: in expansion of macro 'FSFORM'
FSFORM(buf,((_option*)mc->o[i])->label,(int)cw-1);
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:53: error: expected ')' before 'const'
#define FSFORM(b,s,l) memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:567:3: note: in expansion of macro 'FSFORM'
FSFORM(buf,((_option*)mc->o[i])->label,(int)cw-1);
^
Erreur lors de la compilation.
J'ai effacé une partie car il y avait trop de caractères pour le post.