我想建一个有多个文件的工程,在makefile那里已经设置了TARGET =motor和SRC =lcd.c,而且motor.c里面还包括了“lcd.h”,但是在编译时出现了如下内容: Linking: motor.elf avr-gcc -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=100000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=lcd.o -std=gnu99 -MD -MP -MF .dep/motor.elf.d lcd.o --output motor.elf -Wl,-M ap=motor.map,--cref -lm e:/WinAVR/bin/../lib/gcc/avr/3.4.6/../../../../avr/lib/avr4/crtm8.o: In function `__vectors': ../../../../../avr-libc-1.4.4/crt1/gcrt1.S:51: undefined reference to `main' make: *** [motor.elf] Error 1 究竟是什么问题呢?费解中……求助 |