为开发板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 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
|