Eclipse Arduino make:**错误1

Eclipse Arduino make:**错误1,eclipse,gcc,makefile,arduino,avr-gcc,Eclipse,Gcc,Makefile,Arduino,Avr Gcc,下面是我尝试构建项目时遇到的错误。我不确定它指的是什么文件或目录。所有文件和目录都在项目目录中 我按照中的说明设置IDE Arduino核心文件是否应位于项目目录中,并专门添加到Arduino核心库中?我给它的只是由我的Arduino IDE生成的liArduinoCore.a文件。这可能是问题所在吗 错误消息 对于Wl,--gc节,似乎缺少-。它实际上应该是-Wl,--gc节。如果没有正确的标志,编译器将假定它是源文件。您应该检查makefile并进行验证 **** Build of conf

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

我按照中的说明设置IDE

Arduino核心文件是否应位于项目目录中,并专门添加到Arduino核心库中?我给它的只是由我的Arduino IDE生成的
liArduinoCore.a
文件。这可能是问题所在吗

错误消息
对于
Wl,--gc节
,似乎缺少
-
。它实际上应该是
-Wl,--gc节
。如果没有正确的标志,编译器将假定它是源文件。您应该检查makefile并进行验证

**** 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 ****