Compilerfehlermeldungen DCF77 Uhr

Gast #3623964
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
Persönliche Seite #3623971
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.
Gast #3624028
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!

Antwort schreiben

Eine eigene Frage? Dieser Thread ist über 12 Jahre alt. Stell sie in einem eigenen Thread – dort lesen mehr Leute mit, und sie wird öfter und schneller beantwortet.

Neuen Thread starten

Eine Lösung, Ergänzung oder Rückmeldung zu diesem Thread? Dann antworte hier.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.