[其它] 为开发板Arduino/Genuino Mega orMega 2560编译时出错

[复制链接]
309|2
 楼主 | 2019-4-18 14:47 | 显示全部楼层 |阅读模式
为开发板Arduino/Genuino Mega orMega 2560编译时出错
求解决
Arduino:1.8.8 (Windows 10), 开发板:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

libraries\BEEP\BEEP.cpp.o (symbol from plugin): In function `_BEEP::_BEEP()':

(.text+0x0): multiple definition of `_BEEP::_BEEP()'

sketch\BEEP.cpp.o (symbol from plugin):(.text+0x0): first defined here

d:/arduino/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

libraries\BEEP\BEEP.cpp.o (symbol from plugin): In function `_BEEP::_BEEP()':

(.text+0x0): multiple definition of `_BEEP::_BEEP()'

sketch\BEEP.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\BEEP\BEEP.cpp.o (symbol from plugin): In function `_BEEP::_BEEP()':

(.text+0x0): multiple definition of `_BEEP::~_BEEP()'

sketch\BEEP.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\BEEP\BEEP.cpp.o (symbol from plugin): In function `_BEEP::_BEEP()':

(.text+0x0): multiple definition of `_BEEP::~_BEEP()'

sketch\BEEP.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\BEEP\BEEP.cpp.o (symbol from plugin): In function `_BEEP::_BEEP()':

(.text+0x0): multiple definition of `_BEEP::TurnOn()'

sketch\BEEP.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\BEEP\BEEP.cpp.o (symbol from plugin): In function `_BEEP::_BEEP()':

(.text+0x0): multiple definition of `_BEEP::TurnOff()'

sketch\BEEP.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\BEEP\BEEP.cpp.o (symbol from plugin): In function `_BEEP::_BEEP()':

(.text+0x0): multiple definition of `_BEEP::Initialization()'

sketch\BEEP.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\BEEP\BEEP.cpp.o (symbol from plugin): In function `_BEEP::_BEEP()':

(.text+0x0): multiple definition of `BEEP'

sketch\BEEP.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
为开发板 Arduino/Genuino Mega or Mega 2560 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。

使用道具

评论回复
| 2019-4-22 22:53 | 显示全部楼层
从错误信息看是出现了多重定义,方便的话建议楼主上传下代码

使用道具

评论回复
| 2019-4-22 22:59 | 显示全部楼层

使用道具

评论回复
扫描二维码,随时随地手机跟帖
*滑动验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

我要发帖 投诉建议 创建版块 申请版主

快速回复

您需要登录后才可以回帖
登录 | 注册
高级模式

论坛热帖

关闭

热门推荐上一条 /5 下一条

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