MakerLab创客实验室 — Let's Make something.
现在注册
已注册用户请 登入
夜梦忽现 large avatar
MakerLab创客实验室  ›  3d打印软件

请问这个怎么解决 ?

By 夜梦忽现 at 2 年前 , 1008 次浏览

Arduino:1.6.5 (Windows 7), 板:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

构建选项已变更,全部重新构建

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]

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]

报告将会包含更多的信息
"在编译时,输出详细信息"
在 文件>首选项 中启用

目前尚无回复