我正尝试在 Eclipse 中为我的 Arduino (Teensy) 开发一个小型 C++ 程序。
我的问题是当我编译它时出现以下错误:
make all
Building file: ../src/main.cpp
/bin/sh: 1: arm-elf-g++: not found
make: *** [src/main.o] Fehler 127
Invoking: ARM Linux GCC C++ Compiler (GNUARM)
arm-elf-g++ -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I"/home/darcade/workspace/TeensyCore3/src" -Os -ffunction-sections -fdata-sections -Wall -Wa,-adhlns="src/main.o.lst" -fno-exceptions -fno-rtti -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.d" -o "src/main.o" "../src/main.cpp"
21:17:05 Build Finished (took 124ms)
我在我的电脑上搜索“arm-elf-g++”,但我没有找到任何东西......
我正在我的 PC 上运行 Debian 测试。
希望你能帮助我。
LG 达卡德
最佳答案
你有哪个Teensy?从错误来看,您似乎正在尝试为 ARM Cortex (Teensy 3.0) 进行编译。如果您还没有,请下载编译器:http://www.pjrc.com/teensy/td_download.html然后确保已安装的编译器(尤其是 arm-elf-g++)在您的 $PATH 中。
关于c++ - 调试时找不到 "arm-elf-g++",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19481781/