Hallo.
Ich wollte ein paar .c Dateien, die hier im Forum gepostet wurden, testen (Code aus "Ausuro folgt der Linie"). Dazu habe ich einen neuen Ornder erstellt mit
Wenn ich allerdinge compilieren will, erhalte ich zig Fehler, nämlich:Code:28.09.2005 15:51 18.422 asuro.c 04.12.2006 17:47 34 asuro.d 28.09.2005 15:51 14.347 asuro.h 19.12.2005 14:01 7.297 Makefile 06.01.2001 18:08 8 Test-all.bat 06.01.2001 18:08 10 Test-clean.bat 04.12.2006 17:27 1.044 test.c 04.12.2006 17:31 963 test.c.old 04.12.2006 17:47 31 test.d
Kann mir kurz einer sagen, was da faul ist?Code:-------- begin -------- avr-gcc --version avr-gcc (GCC) 3.4.6 Copyright (C) 2006 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 -funsigne itfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=tes st test.c -o test.o In file included from asuro.h:145, from test.c:2: C:/Programme/ASURO/WinAVR/avr/include/avr/signal.h:36:2: warning: #warning "T header file is obsolete. Use <avr/interrupt.h>." test.c: In function `main': test.c:30: error: syntax error before ';' token test.c:24: warning: unused variable `i' test.c: At top level: test.c:32: warning: type defaults to `int' in declaration of `LineData' test.c:32: warning: parameter names (without types) in function declaration test.c:32: error: conflicting types for 'LineData' asuro.h:329: error: previous declaration of 'LineData' was here test.c:32: error: conflicting types for 'LineData' asuro.h:329: error: previous declaration of 'LineData' was here test.c:32: warning: data definition has no type or storage class test.c:33: warning: type defaults to `int' in declaration of `ADOffset' test.c:33: error: initializer element is not constant test.c:33: warning: data definition has no type or storage class test.c:34: warning: type defaults to `int' in declaration of `speedLeft' test.c:34: error: initializer element is not constant test.c:34: warning: data definition has no type or storage class test.c:35: error: syntax error before ';' token ....
Komisch finde ich auch: Wenn ich unter Programmers Notepad IRGEND eine .c Datei öffne, wird bei "make" immer in das Verzeichnis > "C:\Programme\ASURO\ASURO_src\FirstTry\Test-all.bat" gesprungen -- wo wohl offenbar die aller erste Testversion lag?
Idee, woran das liegen könnte?
Danke,
W.R.







Zitieren

Lesezeichen