Compiling C: main.c
avr-gcc -c -mmcu=atmega32 -I. -gdwarf-2 -DF_CPU=8000000UL -Os
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=../obj/main.lst -I../inc -std=c99 -MMD
-MP -MF .dep/main.o.d main.c -o ../obj/main.o
In file included from main.c:5:
c:/winavr-20071221/bin/../avr/include/avr/signal.h:36:2: warning:
#warning "This header file is obsolete. Use <avr/interrupt.h>."
main.c: In function 'main':
main.c:22: warning: implicit declaration of function 'uart_init'
main.c:26: warning: implicit declaration of function 'uart_putc'
Compiling C: uart.c
avr-gcc -c -mmcu=atmega32 -I. -gdwarf-2 -DF_CPU=8000000UL -Os
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=../obj/uart.lst -I../inc -std=c99 -MMD
-MP -MF .dep/uart.o.d uart.c -o ../obj/uart.o
uart.c: In function 'uart_init':
uart.c:18: warning: integer overflow in expression
Compiling C: TWImaster.c
avr-gcc -c -mmcu=atmega32 -I. -gdwarf-2 -DF_CPU=8000000UL -Os
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=../obj/TWImaster.lst -I../inc -std=c99
-MMD -MP -MF .dep/TWImaster.o.d TWImaster.c -o ../obj/TWImaster.o
TWImaster.c: In function 'i2c_Start':
TWImaster.c:73: warning: control reaches end of non-void function
Linking: ../obj/main.elf
avr-gcc -mmcu=atmega32 -I. -gdwarf-2 -DF_CPU=8000000UL -Os
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=../obj/main.o -I../inc -std=c99 -MMD -MP
-MF .dep/main.elf.d ../obj/main.o ../obj/uart.o ../obj/TWImaster.o
--output ../obj/main.elf -Wl,-Map=../obj/main.map,--cref -lm
../obj/main.o: In function `main':
C:\Dokumente und Einstellungen\Schulzo\Desktop\ttt/main.c:26: undefined
reference to `uart_putc'
make.exe: *** [../obj/main.elf] Error 1
> Process Exit Code: 2
> Time Taken: 00:01
Fazit:
In uart.c fehlt immer noch uart_putc(), und uart.h ist auch leer.
Dein o.a. Fehler
>C:\work\MyRobo/main.c:22: undefined reference to `uart_init'
kommt nicht, das ist auch richtig so.
Oliver