Error compilation Arduino
Hi guys!
Please help me! What's the problem?
Arduino: 1.6.4 (Windows 7), Плата"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
LCD: RepRapDiscount Full Graphic Smart Controller
ui.cpp: In member function 'void UIDisplay::adjustMenuPos()':
ui.cpp:2016: 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: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2016: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
ui.cpp:2016: error: expected ')' before 'const'
ui.cpp: In member function 'void UIDisplay::nextPreviousAction(int8_t)':
ui.cpp:2083: 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: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2083: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
ui.cpp:2083: error: expected ')' before 'const'
ui.cpp:2087: 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: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2087: 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: error: expected ')' before 'const'
ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
Comments
I am having this compile problem as well. All my efforts are with 0.92.3, Mega2560 board. Compile stops midway through. I began with Arduino 1.6.4 IDE, tried changing to Arduino 1.6.5 and Daily build for 08 July 2015 (which displays as 1.6.6). I was not successful in establishing a working Arduino IDE in any of these configurations. Many sketchbook and HAL compile issues later, I got back to a working IDE using 1.6.4 (which would lock up during compile). I reverted to an older JSON file and downloaded only the configuration.h file, and the compile worked. Switching back to the previous (newer) JSON file and downloading only configuration.h, the compile locked up again. This would indicate to me that something different in the configuration.h file is causing the IDE to fail. Theoretically, perhaps such an issue could be resolved by blocking the user from setting such a combination in the Configurator?
Since even the configuration strings of the two files are too massive to be allowed in this forum comment, I am e-mailing them separately to Repetier for analysis.