<font face="Arial, Verdana">Hi</font>
<font face="Arial, Verdana">Help</font>
<font face="Arial, Verdana">I'm having trouble uploading firmware on the Arduino Mega 2560</font>
<font face="Arial, Verdana">I RAMPS v1.4 motherboard</font>
<font face="Arial, Verdana">I have Windows 7</font>
<font face="Arial, Verdana">I use version 1.6.5</font>
<font face="Arial, Verdana">Errors:</font>
<font face="Arial, Verdana">
</font>
<font face="Arial, Verdana"><div>C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\ui.cpp: In member function 'void UIDisplay::adjustMenuPos()':
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\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));
^
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\ui.cpp:2016:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\ui.cpp:2016:41: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\ui.cpp:2016:41: error: expected ')' before 'const'
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\ui.cpp: In member function 'void UIDisplay::nextPreviousAction(int8_t)':
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\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));
^
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\ui.cpp:2083:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\ui.cpp:2083:41: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\ui.cpp:2083:41: error: expected ')' before 'const'
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\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
^
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\ui.cpp:2087:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\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
^
C:\Users\HAMEDH1\AppData\Local\Temp\build3078220038397651215.tmp\ui.cpp:2087:43: error: expected ')' before 'const'
Error compiling.
</span></font></div>
<font face="Arial, Verdana">
</font>
<font face="Arial, Verdana">
</font>
<font face="Arial, Verdana">Please, help.</font>