为何出现下面情况?
马老师:我在实验板中试用《1602b液晶使用范例〉出现下面的提示:请帮忙解答。谢谢!
Compiling: lcd.c
avr-gcc -c -mmcu=atmega16 -I. -gdwarf-2 -DF_CPU=1000000UL-Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=lcd.lst-std=gnu99 -MD -MP -MF .dep/lcd.o.d lcd.c -o lcd.o
lcd.c:1:19: iom16.h: No such file or directory
lcd.c:2:20: macros.h: No such file or directory
lcd.c: In function `LCD_en_write':
lcd.c:50: error: `PORTC' undeclared (first use in this function)
lcd.c:50: error: (Each undeclared identifier is reported only once
lcd.c:50: error: for each function it appears in.)
lcd.c: In function `LCD_write_char':
lcd.c:62: error: `PORTC' undeclared (first use in this function)
lcd.c:63: error: `PORTA' undeclared (first use in this function)
lcd.c: At top level:
lcd.c:84: warning: return type of 'main' is not `int'
lcd.c: In function `main':
lcd.c:85: error: `DDRA' undeclared (first use in this function)
lcd.c:86: error: `DDRC' undeclared (first use in this function)
make.exe: *** Error 1 马老师:这个我一弄明白了,谢谢!
页:
[1]