Gast
#1642402
Hallo Leute, ich bin recht neu im µC Bereich, habe mir nach dem aktuellen Tutorial auch mein Eclipse mit dem AVr Plugin eingerichtet, passt auch alles soweit. Wenn ich jetzt allerdings Peter Fleurys Library Kompillieren will, incl dem Beispiel bekomme ich folgenden Fehler: **** Build of configuration Debug for project SCAR **** make all Building file: ../main.c Invoking: AVR Compiler avr-gcc -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -mmcu=atmega16 -DF_CPU=16000000UL -MMD -MP -MF"main.d" -MT"main.d" -c -o"main.o" "../main.c" Finished building: ../main.c Building file: ../uart.c Invoking: AVR Compiler avr-gcc -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -mmcu=atmega16 -DF_CPU=16000000UL -MMD -MP -MF"uart.d" -MT"uart.d" -c -o"uart.o" "../uart.c" Finished building: ../uart.c Building target: SCAR.elf Invoking: AVR C Linker avr-gcc -Wl,-Map,SCAR.map -mmcu=atmega16 -o"SCAR.elf" ./main.o ./uart.o ./uart.o: In function `__vector_11': ../uart.c:248: multiple definition of `__vector_11' ./main.o:../uart.c:248: first defined here ./uart.o: In function `__vector_12': ../uart.c:291: multiple definition of `__vector_12' ./main.o:../uart.c:291: first defined here ./uart.o: In function `uart_init': ../uart.c:315: multiple definition of `uart_init' ./main.o:../uart.c:315: first defined here ./uart.o: In function `uart_getc': ../uart.c:393: multiple definition of `uart_getc' ./main.o:../uart.c:393: first defined here ./uart.o: In function `uart_putc': ../uart.c:421: multiple definition of `uart_putc' ./main.o:../uart.c:421: first defined here ./uart.o: In function `uart_puts': ../uart.c:447: multiple definition of `uart_puts' ./main.o:../uart.c:447: first defined here ./uart.o: In function `uart_puts_p': ../uart.c:461: multiple definition of `uart_puts_p' ./main.o:../uart.c:461: first defined here make: *** [SCAR.elf] Fehler 1 Ich habe jeweils nur eine uart.c, uart.h, main.c (die ehemals test_usrt.h hieß). Was spielt da verrückt?