-
-
Guten Morgen nochmals,
wenn ich das Testprogramm von Dannegger compilern will kommen ebenfalls ein hauen fehler.
Build started 1.2.2011 at 09:28:43
avr-gcc -mmcu=atmega32u2 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT infrarot2.o -MF dep/infrarot2.o.d -c ../infrarot2.c
In file included from c:\winavr-20100110\bin\../lib/gcc/avr/4.3.3/include/main.h:11,
from ../infrarot2.c:1:
c:\winavr-20100110\bin\../lib/gcc/avr/4.3.3/include/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>."
../infrarot2.c:4: warning: conflicting types for built-in function 'putchar'
../infrarot2.c: In function 'putchar':
../infrarot2.c:6: error: 'UCSRA' undeclared (first use in this function)
../infrarot2.c:6: error: (Each undeclared identifier is reported only once
../infrarot2.c:6: error: for each function it appears in.)
../infrarot2.c:6: error: 'UDRE' undeclared (first use in this function)
../infrarot2.c:7: error: 'UDR' undeclared (first use in this function)
../infrarot2.c: At top level:
../infrarot2.c:11: warning: conflicting types for built-in function 'puts'
../infrarot2.c: In function 'main':
../infrarot2.c:23: error: 'TCCR0' undeclared (first use in this function)
../infrarot2.c:24: error: 'TIMSK' undeclared (first use in this function)
../infrarot2.c:26: error: 'UBRRL' undeclared (first use in this function)
../infrarot2.c:27: error: 'UBRRH' undeclared (first use in this function)
../infrarot2.c:28: error: 'UCSRA' undeclared (first use in this function)
../infrarot2.c:29: error: 'UCSRC' undeclared (first use in this function)
../infrarot2.c:29: error: 'URSEL' undeclared (first use in this function)
../infrarot2.c:29: error: 'UCSZ1' undeclared (first use in this function)
../infrarot2.c:29: error: 'UCSZ0' undeclared (first use in this function)
../infrarot2.c:30: error: 'UCSRB' undeclared (first use in this function)
../infrarot2.c:30: error: 'RXEN' undeclared (first use in this function)
../infrarot2.c:30: error: 'TXEN' undeclared (first use in this function)
make: *** [infrarot2.o] Error 1
Build failed with 17 errors and 3 warnings...
.
Wenn ich einen funktionierenden Code hätte würde ich auch lernen wie er funktioniert, so mache ich das in der Schule ja auch.
Ich würde mir den Code ja da so zurechtschreiben wie ich ihn dann benötige.
grüße
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- Anhänge hochladen: Nein
- Beiträge bearbeiten: Nein
-
Foren-Regeln
Lesezeichen