|
你好,我想请教你一个问题,我刚使用 Winavr,我用的是2006.4.21版本的,在按照新手入门的步骤下,一步一步做,可出现这样的问题,
-------- begin --------
avr-gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling C: main.c
avr-gcc -c -mmcu=atmega16 -I. -gdwarf-2 -DF_CPU=UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=obj/main.lst -std=gnu99 -Wundef -MD -MP -MF .dep/main.o.d main.c -o obj/main.o
In file included from main.c:2:
C:/WinAVR/avr/include/util/delay.h: In function `_delay_us':
C:/WinAVR/avr/include/util/delay.h:154: error: `UL' undeclared (first use in this function)
C:/WinAVR/avr/include/util/delay.h:154: error: (Each undeclared identifier is reported only once
C:/WinAVR/avr/include/util/delay.h:154: error: for each function it appears in.)
C:/WinAVR/avr/include/util/delay.h: In function `_delay_ms':
C:/WinAVR/avr/include/util/delay.h:179: error: `UL' undeclared (first use in this function)
make: *** [obj/main.o] Error 1
我试了几次,都是这样.以前我也编译过,它能通过,但现在就不行。不知道为什么?郁闷。能帮我解决一下吗? |
|