极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12953|回复: 2

IDE编译通不过,换了多个版本,求助!!!!!!!!

[复制链接]
发表于 2016-9-26 23:42:46 | 显示全部楼层 |阅读模式
Arduino:1.5.8 (Windows XP), 板:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

ui.cpp: In member function 'void UIDisplay::adjustMenuPos()':
ui.cpp:2050: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:2050:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2050:41: error: expected primary-expression before 'const'
     uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
                                         ^
ui.cpp:2050:41: error: expected ')' before 'const'
ui.cpp: In member function 'void UIDisplay::nextPreviousAction(int8_t)':
ui.cpp:2117: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:2117:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2117:41: error: expected primary-expression before 'const'
     uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
                                         ^
ui.cpp:2117:41: error: expected ')' before 'const'
ui.cpp:2121: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:2121:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2121: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:2121:43: error: expected ')' before 'const'
编译有误。

  报告将会包含更多的信息
  "Show verbose output during compilation"
  在 文件>首选项 中启用
回复

使用道具 举报

发表于 2016-9-28 17:22:24 | 显示全部楼层
这是库文件有问题,库文件都编译不通过
回复 支持 反对

使用道具 举报

发表于 2016-9-29 17:23:06 | 显示全部楼层
最新版本1.6.11  板子要选对,先用系统提供的例子编译试试看。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-13 19:53 , Processed in 0.049427 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表