Moinmoin, ich hab gerad probleme, eine Datei in mein Projekt einzubinden. Ich habe hier ein Projekt, bestehend aus mehreren Sourcefiles und Header files. Im AVR Studio habe ich die Sourcefiles in eingefügt, die Headerfiles tauchen unter External Dependencies auf. Nun zu meinem Problem: Ich kann das Projekt problemlos kompilieren, solange ich nicht die UART.C mit in die sourcefiles reinpacke. Wenn ich das tu, kommt im Messages Fenster die folgende Fehlermeldung: 23-Jul-2007 16:01:52 gcc plug-in: Error: Object file not found on expected location [pfad gekürzt]\RZ200\default\RZ200.elf im Fenster Build des AVR STudios hab ich folgende meldungen, allerdings nicht als error: [...] Build started 23.7.2007 at 16:25:47 avr-gcc.exe -mmcu=atmega1281 RZ200.o callbacks.o coord.o debounce.o device.o dis[pfad gekürzt]\RCB\mac" -ll2_rdk230_rel -o RZ200.elf uart.o: In function `UART0_Init': ../uart.c:29: multiple definition of `UART0_Init' coord.o:../uart.c:29: first defined here uart.o: In function `UART0_PutC': ../uart.c:46: multiple definition of `UART0_PutC' coord.o:../uart.c:46: first defined here uart.o: In function `UART0_PutS': ../uart.c:59: multiple definition of `UART0_PutS' coord.o:../uart.c:59: first defined here uart.o: In function `UART0_GetC': ../uart.c:64: multiple definition of `UART0_GetC' coord.o:../uart.c:64: first defined here uart.o: In function `UART0_rx_count': ../uart.c:74: multiple definition of `UART0_rx_count' coord.o:../uart.c:74: first defined here uart.o: In function `UART0_tx_count': ../uart.c:79: multiple definition of `UART0_tx_count' coord.o:../uart.c:79: first defined here uart.o: In function `UART1_Init': ../uart.c:89: multiple definition of `UART1_Init' coord.o:../uart.c:89: first defined here uart.o: In function `UART1_PutC': ../uart.c:110: multiple definition of `UART1_PutC' coord.o:../uart.c:110: first defined here uart.o: In function `UART1_PutS': ../uart.c:123: multiple definition of `UART1_PutS' coord.o:../uart.c:123: first defined here uart.o: In function `UART1_GetC': ../uart.c:129: multiple definition of `UART1_GetC' coord.o:../uart.c:129: first defined here uart.o: In function `UART1_rx_count': ../uart.c:140: multiple definition of `UART1_rx_count' coord.o:../uart.c:140: first defined here uart.o: In function `UART1_tx_count': ../uart.c:145: multiple definition of `UART1_tx_count' coord.o:../uart.c:145: first defined here uart.o: In function `__vector_25': ../uart.c:153: multiple definition of `__vector_25' coord.o:../uart.c:153: first defined here uart.o: In function `__vector_26': ../uart.c:164: multiple definition of `__vector_26' coord.o:../uart.c:164: first defined here uart.o: In function `__vector_36': ../uart.c:178: multiple definition of `__vector_36' coord.o:../uart.c:178: first defined here uart.o: In function `__vector_37': ../uart.c:191: multiple definition of `__vector_37' coord.o:../uart.c:191: first defined here make: *** [RZ200.elf] Error 1 Build succeeded with 0 Warnings... Hat jemand 'ne Idee, woran das liegen könnte? Gruß Martin
Problem gefunden: dieser Fehler tritt auf, wenn Dateien doppelt eingebunden werden. Ich hab leider an einer stelle nicht die UART.h eingebunden, sondern die UART.C, dadurch war natürlich alles doppelt definiert... Sorry fürs belästigen mit meiner Doofheit
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.