Arduino 未定义对“运算符”的引用
Arduino undefined reference to `operator
我正在做一个使用 arduino 的项目。我是 运行 Fedora 24 和 Arduino IDE 1.6.4。我想继续我昨天的工作,但我做不到。出现新的编译错误。上次一切正常。 A 还尝试了一些其他较旧的工作草图,它们现在显示相同的错误。
Arduino: 1.6.4 (Linux), Board: "Arduino Nano, ATmega328"
Build options changed, rebuilding all
arduino.cpp.o: In function `setup':
/usr/share/arduino/hardware/arduino/avr/cores/arduino/HardwareSerial.h:111: undefined reference to `operator delete(void*, unsigned int)'
/usr/share/arduino/hardware/arduino/avr/cores/arduino/HardwareSerial.h:111: undefined reference to `operator delete(void*, unsigned int)'
collect2: error: ld returned 1 exit status
Error compiling.
我记得我以前用过 "dnf update",它也更新了内核。我已经尝试通过删除 .arduino15 目录并重新安装我所有的库来重新安装 arduino IDE。没有任何帮助。我该如何修复编译错误?
我已经解决了我的问题。我尝试了不同的方法,但这很有效:
- 通过终端卸载 Arduino IDE
- 删除
.arduino15
文件夹
- 搜索任何名为
arduino
的目录并使用 sudo rm -r
将其删除
- 直接从 https://www.arduino.cc/en/Main/Software
安装最新的 Arduino IDE 版本
我正在做一个使用 arduino 的项目。我是 运行 Fedora 24 和 Arduino IDE 1.6.4。我想继续我昨天的工作,但我做不到。出现新的编译错误。上次一切正常。 A 还尝试了一些其他较旧的工作草图,它们现在显示相同的错误。
Arduino: 1.6.4 (Linux), Board: "Arduino Nano, ATmega328"
Build options changed, rebuilding all
arduino.cpp.o: In function `setup':
/usr/share/arduino/hardware/arduino/avr/cores/arduino/HardwareSerial.h:111: undefined reference to `operator delete(void*, unsigned int)'
/usr/share/arduino/hardware/arduino/avr/cores/arduino/HardwareSerial.h:111: undefined reference to `operator delete(void*, unsigned int)'
collect2: error: ld returned 1 exit status
Error compiling.
我记得我以前用过 "dnf update",它也更新了内核。我已经尝试通过删除 .arduino15 目录并重新安装我所有的库来重新安装 arduino IDE。没有任何帮助。我该如何修复编译错误?
我已经解决了我的问题。我尝试了不同的方法,但这很有效:
- 通过终端卸载 Arduino IDE
- 删除
.arduino15
文件夹 - 搜索任何名为
arduino
的目录并使用sudo rm -r
将其删除
- 直接从 https://www.arduino.cc/en/Main/Software 安装最新的 Arduino IDE 版本