我正在尝试编写一个简单的小测试程序。我得到了一些错误:
MacBook-Air:Untitled user$ ls
main.c makefile utils.c utils.h
MacBook-Air:Untitled user$ make
avr-gcc -I. -g -mmcu=atmega640 -Os -fpack-struct -fshort-enums -funsigned-bitfields -funsigned-char -Wall -Wstrict-prototypes -Wa,-ahlms=main.lst -c main.c -o main.o
make: avr-gcc: No such file or directory
make: *** [main.o] Error 1
MacBook-Air:Untitled user$ gcc抱怨的是什么文件?main.c和makefile确实存在于同一个目录中,所以我很困惑。
发布于 2012-03-17 02:11:50
这不是它找不到的C文件,而是C编译器(avr-gcc)。它是在makefile中定义的吗?例如,CC=avr-gcc?您可以尝试用CC=gcc替换它
https://stackoverflow.com/questions/9742355
复制相似问题