Hi M1.R,
ich wollte gerade dein Verfolgungsprogramm kompilieren und kriege 6 Fehler:
Code:
Build started 27.3.2008 at 13:32:26
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -I../../lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro.d; \
[ -s asuro.d ] || rm -f asuro.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -I../../lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \
[ -s test.d ] || rm -f test.d
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 4.2.2 (WinAVR 20071221)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
avr-gcc -c -mmcu=atmega8 -I. -g -Os -I../../lib/inc -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o
In file included from asuro.h:61,
from test.c:9:
c:/winavr/bin/../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>."
test.c: In function 'kollision':
test.c:47: warning: implicit declaration of function 'BackLEDleft'
test.c:48: warning: implicit declaration of function 'BackLEDright'
test.c:48: error: 'HALF' undeclared (first use in this function)
test.c:48: error: (Each undeclared identifier is reported only once
test.c:48: error: for each function it appears in.)
test.c:62: warning: implicit declaration of function 'KeyPressed'
test.c: In function 'fahr_nach_links':
test.c:73: error: 'HALF' undeclared (first use in this function)
test.c: In function 'fahr_nach_rechts':
test.c:84: error: 'HALF' undeclared (first use in this function)
test.c: In function 'main':
test.c:100: warning: implicit declaration of function 'akku_kontrolle'
test.c:116: warning: implicit declaration of function 'objekt_sichtbar'
test.c:118: error: 'HALF' undeclared (first use in this function)
make: *** [test.o] Error 1
Build failed with 6 errors and 6 warnings...
Wie kann ich ihm "HALF" beibringen?
Lesezeichen