Forum: Mikrocontroller und Digitale Elektronik Procycon avrlib => seltsame Fehler


von Matthias (Gast)


Lesenswert?

Guten Abend/Morgen,

In einem Projekt wollte ich die uart-Ausgabe aus der Procycon Avrlib 
benutzen, habe (unter anderem) uart.h, uart.c und einige andere Files im 
Projekt-Verzeuichnis und bekomme bei make folgende Fehlermeldung:

Compiling: uart.c
avr-gcc -c -mmcu=atmega32 -I. -g   -Os -funsigned-char 
-funsigned-bitfields -fpack-struct -fshort-enums -Wall 
-Wstrict-prototypes -Wa,-adhlns=uart.lst  -std=gnu99 -DF_OSC=16000000 
-MD -MP -MF .dep/uart.o.d uart.c -o uart.o
uart.c:231: warning: return type defaults to `int'
uart.c:231: warning: function declaration isn't a prototype
uart.c: In function `SIGNAL':
uart.c:231: warning: type of "__vector_15" defaults to "int"
uart.c: At top level:
uart.c:259: warning: return type defaults to `int'
uart.c:259: warning: function declaration isn't a prototype
uart.c:259: error: redefinition of 'SIGNAL'
uart.c:231: error: previous definition of 'SIGNAL' was here
uart.c: In function `SIGNAL':
uart.c:259: warning: type of "__vector_13" defaults to "int"
make: *** [uart.o] Error 1

Ähnlich wüste Fehler bekomme ich auch bei den mitgelieferten Beispielen 
von Avrlib.

Kann mir jemand einen Anhaltspunkt zur Fehlersuche geben?
avr-gcc ist  Version 3.4.3

Danke,
Matthias


von Matthias (Gast)


Lesenswert?

Sorry, in uart.c musste noch <avr/signal.h> eingebunden werden.

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
Noch kein Account? Hier anmelden.