【问题标题】:Eclipse Arduino make: *** error 1Eclipse Arduino 制作:*** 错误 1
【发布时间】:2012-06-12 18:45:23
【问题描述】:

以下是我尝试构建项目时遇到的错误。我不确定它在说什么文件或目录。所有文件和目录都在项目目录中。

我按照http://arduino.cc/playground/Code/Eclipse 中的说明设置了我的 IDE。

Arduino 核心文件是否应该在项目目录中并专门添加到 Arduino 核心库中?我给它的只是我的 Arduino IDE 生成的liArduinoCore.a 文件。会不会是这个问题?

错误信息

**** Build of configuration Debug for project CustomLEDPoi ****

make all 
Building target: CustomLEDPoi.elf
Invoking: AVR C++ Linker
avr-gcc -Wl,-Map,CustomLEDPoi.map,--cref Wl,--gc-sections -    L"C:\Users\Justin\workspaceArduino\arduino_core\src" -L"C:\Users\Justin\workspaceArduino\arduino_core\328P_16MHz Arduino\src" -L"C:\Users\Justin\workspaceArduino\CustomLEDPoi\arduinolib" -L"C:\Users\Justin\workspaceArduino\CustomLEDPoi\lib" -mmcu=atmega328p -o "CustomLEDPoi.elf"  ./src/glowstick2.o  ./lib/CShiftPWM.o ./lib/MeetAndroid.o ./lib/hsv2rgb.o  ./arduinolib/HardwareSerial.o ./arduinolib/SPI.o   -lArduinoCore
avr-gcc.exe: Wl,--gc-sections: No such file or directory
make: *** [CustomLEDPoi.elf] Error 1

**** Build Finished ****

【问题讨论】:

    标签: eclipse gcc makefile arduino avr-gcc


    【解决方案1】:

    Wl,--gc-sections 似乎缺少 -。它实际上应该是-Wl,--gc-sections。如果没有正确的标志,编译器会假定它是一个源文件。您应该检查 makefile 并进行验证。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-25
      • 1970-01-01
      • 2019-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多