问题描述
02:55:44 **** Incremental Build of configuration Debug for project MASTER ( SPI ) ****
make all
Building file: ../SPI-PROG.c
Invoking: AVR Compiler
avr-gcc -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_cpu=16000000UL -MMD -MP -MF"SPI-PROG.d" -MT"SPI-PROG.o" -c -o "SPI-PROG.o" "../SPI-PROG.c"
make: *** [SPI-PROG.o] Error -1073741502
02:55:46 Build Finished (took 2s.127ms)
解决方法
avr-gcc.exe 无法启动。很可能你的 WinAVR 工具链安装不好。
运行
avr-gcc --version
直接从命令行检查它是否可以运行。如果是,则可能是 Eclipse 的配置方式有问题。