anybody having problems compiling the UI.CPP file?
i am using arduino 1.5.8
I am getting massive errors in this file after downloading the source files from here:
https://github.com/seemecnc/Repetier-091-ORION
Any suggestions would be appreciated...
Here are the errors...
C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp -o C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp.o
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp: In member function 'bool<anonymous struct>::showEntry() const':
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp:120:35: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
f = HAL::readFlashByte((const prog_char*)&filter);
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp:120:35: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp:120:29: error: expected primary-expression before 'const'
f = HAL::readFlashByte((const prog_char*)&filter);
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp:120:29: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp:123:36: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
f2 = HAL::readFlashByte((const prog_char*)&nofilter);
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp:123:36: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp:123:30: error: expected primary-expression before 'const'
f2 = HAL::readFlashByte((const prog_char*)&nofilter);
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp:123:30: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp: In member function 'void UIDisplay::adjustMenuPos()':
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

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\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

41: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

41: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp: In member function 'void UIDisplay::nextPreviousAction(int8_t)':
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

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\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

41: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

41: error: expected ')' before 'const'
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

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\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

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\BOBSHA~1\AppData\Local\Temp\build4900353575422888629.tmp\ui.cpp

43: error: expected ')' before 'const'
Error compiling.