|
发表于 2010-11-14 15:22:30
|
显示全部楼层
回复【46楼】hctseng
-----------------------------------------------------------------------
上面的程序不知何原因,在GCC上编译通不过:
Build started 14.11.2010 at 15:15:24
avr-gcc -mmcu=atmega8 -Wall -gdwarf-2 -O0 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wp,-M,-MP,-MT,uart.o,-MF,dep/uart.o.d -c ../uart.c -o uart.o
../uart.c: In function `UART_Init':
../uart.c:250: warning: passing arg 1 of `fdevopen' from incompatible pointer type
../uart.c:254: error: `AVERSION_HUPTVERSION' undeclared (first use in this function)
../uart.c:254: error: (Each undeclared identifier is reported only once
../uart.c:254: error: for each function it appears in.)
../uart.c:254: error: `VERSION_NEBENVERSION' undeclared (first use in this function)
make: *** [uart.o] Error 1
Build failed with 5 errors and 1 warnings... |
|