Compiling error
Hi,
I've a Rostock mini printer with an old version of Repetier FW, so i'm try to edit and compile the new 0.91 FW.
I'm using Arduino 1.0.5 and i'm compiling the FW for an Atmega 2560, but i'm having a lots of error while compiling...
Here the Configuration.h
And here the some error:
Can someone tell me how to resolve? Thanks.
Edit: I've use the configuration tool for create the FW and the configuration.h
I've a Rostock mini printer with an old version of Repetier FW, so i'm try to edit and compile the new 0.91 FW.
I'm using Arduino 1.0.5 and i'm compiling the FW for an Atmega 2560, but i'm having a lots of error while compiling...
Here the Configuration.h
And here the some error:
Can someone tell me how to resolve? Thanks.
Edit: I've use the configuration tool for create the FW and the configuration.h
Comments
ui.cpp: In member function 'void UIDisplay::adjustMenuPos()':
ui.cpp:2016:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
ui.cpp:2016:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2016:41: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
ui.cpp:2016:41: error: expected ')' before 'const'
ui.cpp: In member function 'void UIDisplay::nextPreviousAction(int8_t)':
ui.cpp:2083:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
ui.cpp:2083:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2083:41: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
ui.cpp:2083:41: error: expected ')' before 'const'
ui.cpp:2087:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
uint8_t entType = HAL::readFlashByte((const prog_char*)&(ent->menuType));// 0 = Info, 1 = Headline, 2 = submenu ref, 3 = direct action command
^
ui.cpp:2087:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2087:43: error: expected primary-expression before 'const'
uint8_t entType = HAL::readFlashByte((const prog_char*)&(ent->menuType));// 0 = Info, 1 = Headline, 2 = submenu ref, 3 = direct action command
^
ui.cpp:2087:43: error: expected ')' before 'const'
Errore durante la compilazione