Forum: Mikrocontroller und Digitale Elektronik Compilerfehlermeldungen DCF77 Uhr


von Dario (Gast)


Lesenswert?

Hi

Ich habe diese Funkuhr gebaut: 
http://www.mikrocontroller.net/articles/DCF77-Funkwecker_mit_AVR
Wenn ich den Code nun im Atmel Studio kompilieren will kommen diese 
Fehlermeldungen:
1
Warning  1  #warning "This header file is obsolete.  Use <avr/interrupt.h>." [-Wcpp]  e:\atmel toolchain\avr8 gcc\native\3.4.1051\avr8-gnu-toolchain\avr\include\avr\signal.h  36  2  GccApplication1
2
Error  2  attempt to use poisoned "SIG_INTERRUPT0"  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\dcf77.h  26  9  GccApplication1
3
Error  3  attempt to use poisoned "SIG_OVERFLOW0"  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\dcf77.h  27  9  GccApplication1
4
Error  4  attempt to use poisoned "SIG_OVERFLOW1"  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\timerfunctions.h  27  9  GccApplication1
5
Error  5  attempt to use poisoned "SIG_OVERFLOW2"  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\timerfunctions.h  28  9  GccApplication1
6
Error  6  attempt to use poisoned "SIG_OVERFLOW1"  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\timerfunctions.c  3  9  GccApplication1
7
Warning  7  'SIG_OVERFLOW1' appears to be a misspelled signal handler [enabled by default]  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\timerfunctions.c  3  9  GccApplication1
8
Error  8  attempt to use poisoned "SIG_OVERFLOW2"  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\timerfunctions.c  59  9  GccApplication1
9
Warning  9  'SIG_OVERFLOW2' appears to be a misspelled signal handler [enabled by default]  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\timerfunctions.c  59  9  GccApplication1
10
Warning  10  pointer targets in passing argument 2 of 'itoa' differ in signedness [-Wpointer-sign]  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\dcf77.c  108  2  GccApplication1
11
Message  11  expected 'char *' but argument is of type 'unsigned char *'  e:\atmel toolchain\avr8 gcc\native\3.4.1051\avr8-gnu-toolchain\avr\include\stdlib.h  418  7  GccApplication1
12
Warning  12  pointer targets in passing argument 2 of 'itoa' differ in signedness [-Wpointer-sign]  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\dcf77.c  167  2  GccApplication1
13
Message  13  expected 'char *' but argument is of type 'unsigned char *'  e:\atmel toolchain\avr8 gcc\native\3.4.1051\avr8-gnu-toolchain\avr\include\stdlib.h  418  7  GccApplication1
14
Error  14  attempt to use poisoned "SIG_INTERRUPT0"  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\dcf77.c  196  9  GccApplication1
15
Warning  15  'SIG_INTERRUPT0' appears to be a misspelled signal handler [enabled by default]  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\dcf77.c  196  9  GccApplication1
16
Error  16  attempt to use poisoned "SIG_OVERFLOW0"  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\dcf77.c  206  9  GccApplication1
17
Warning  17  'SIG_OVERFLOW0' appears to be a misspelled signal handler [enabled by default]  D:\Dokumente\AVR\Funkuhr\GccApplication1\GccApplication1\dcf77.c  206  9  GccApplication1

lgd

von Rufus Τ. F. (rufus) Benutzerseite


Lesenswert?

Und?

Hast Du schon mal versucht, zu lesen, was da steht?

Fang mit der ersten Fehlermeldung an.
1
Warning  1  #warning 
2
3
"This header file is obsolete.  Use <avr/interrupt.h>." 
4
5
[-Wcpp]  e:\atmel toolchain\avr8 gcc\native\3.4.1051\avr8-gnu-toolchain\avr\include\avr\signal.h  36  2  GccApplication1


Du verwendest Code, in dem #include <signal.h> steht.

von Dario (Gast)


Lesenswert?

Denn ersten Fehler konnte ich nun beheben. Was ist mit denn anderen?

von holger (Gast)


Lesenswert?

>Denn ersten Fehler konnte ich nun beheben. Was ist mit denn anderen?

Bei google eingeben. Ist das denn so schwer?

von BattMan (Gast)


Lesenswert?

Dario schrieb:
> Warning  15  'SIG_INTERRUPT0'

Die Source die Du verwendest ist für die alte Toolchain geschrieben!
Informiere Dich mal im Netz bzw. in den Helpfiles. Es hat sich einiges 
an den Schreibweisen, bspw. der Interrupt-Vektorbezeichner, geändert!

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.