PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Fehler beim Compilieren mit AsuroFlash



ezo2k3
18.11.2008, 17:55
hi ,
kriege folgende Fehlermeldung .. kann sie leider nicht interpretieren .. kann mir vielleicht jemand sagen wo der fehler ist ..

die zeilen sind gemeint :


left=(float)(lineData[LEFT]&1023);
right=(float)(lineData[RIGHT]&1023);

die fehlermeldunge kriege ich :


In file included from test.c:14:
follow_bib.h: In function 'setspeed':
follow_bib.h:69: warning: implicit declaration of function 'Gettime'
follow_bib.h: In function 'photosensoren_auslesen':
follow_bib.h:210: error: 'LEFT' undeclared (first use in this function)
follow_bib.h:210: error: (Each undeclared identifier is reported only once
follow_bib.h:210: error: for each function it appears in.)
follow_bib.h:211: error: 'RIGHT' undeclared (first use in this function)
follow_bib.h: In function 'countTicks':
follow_bib.h:279: warning: implicit declaration of function 'OdometryData'
test.c: In function 'followline':
test.c:160: error: 'LEFT' undeclared (first use in this function)
test.c:162: error: 'RIGHT' undeclared (first use in this function)
test.c:164: error: 'CENTER' undeclared (first use in this function)
test.c:285: warning: implicit declaration of function 'PrintInt'
test.c:286: warning: implicit declaration of function 'SerPrint'
test.c: In function 'main':
test.c:337: warning: implicit declaration of function 'Msleep'
test.c:338: error: 'LEFT' undeclared (first use in this function)
test.c:345: error: 'RIGHT' undeclared (first use in this function)
make: *** [test.o] Error 1


ExitCode 2





mfg tim

Osser
18.11.2008, 20:51
Hi ezo2k3,

deine Infos sind ein bischen zu Rudimentär.

1) Bitte poste deinen vollständigen C Sourcekode.
2) Benutzt Du AsuroFlash.exe(Eierlegendewollmilchsau) oder Programmers Notepad??
3) Die Fehlermeldung scheint auch nur teilweise gepostet zu sein. Bitte poste die Ausgabe des Compilers/Linkers nochmal vollständig.

Mit den Daten die ich hier sehe kann ich Dir leider noch keine Hilfestellung geben.

Gruss,

O.

ezo2k3
18.11.2008, 21:42
hi,
danke erstma für die antwort.
ich benutze das Asuroflash.exe Programm

Hier der volle Fehler Code:


Asuro Flash (Alias Eierlegendewollmilchsau) V1.4.6.56 (c) O.O. Müller 2008
User has admin rights.
Processor branding Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz, OS WINXP
Hello Hans on MONSTER, have fun :)

>Session Environment Variables:
AF_AVRDIR=C:\WinAVR
AF_PROJECT=Project1
AF_SOURCE_FILES=
AF_ASM_SRC_FILES=
AF_PRGDIR=C:\Programme\AsuroFlash
AF_PRJDIR=C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\AsuroFlash
AF_ASURO_LIB_PATH=%AllUsersProfile%\asuro_lib\lib
>Ready.
>Session Environment Variables:
AF_AVRDIR=C:\WinAVR
AF_PROJECT=Project1
AF_SOURCE_FILES=ChDeAsuro.c
AF_ASM_SRC_FILES=
AF_PRGDIR=C:\Programme\AsuroFlash
AF_PRJDIR=C:\asuro
AF_ASURO_LIB_PATH=%AllUsersProfile%\asuro_lib\lib
File ChDeAsuro.c saved.
>Default make_all.cmd file created.
>Default makefile created.
Make
C:\asuro>C:\WinAVR\utils\bin\make.exe all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=ChDeAsuro.lst -IC:\Programme\AsuroFlash\include ChDeAsuro.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > ChDeAsuro.d; \
[ -s ChDeAsuro.d ] || rm -f ChDeAsuro.d
-------- begin --------
avr-gcc --version
avr-gcc (WinAVR 20080610) 4.3.0
Copyright (C) 2008 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 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=ChDeAsuro.lst -IC:\Programme\AsuroFlash\include ChDeAsuro.c -o ChDeAsuro.o
In file included from asuro.h:34,
from ChDeAsuro.c:13:
c:/winavr/lib/gcc/../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>."
In file included from ChDeAsuro.c:14:
follow_bib.h: In function 'setspeed':
follow_bib.h:69: warning: implicit declaration of function 'Gettime'
follow_bib.h: In function 'photosensoren_auslesen':
follow_bib.h:210: error: 'LEFT' undeclared (first use in this function)
follow_bib.h:210: error: (Each undeclared identifier is reported only once
follow_bib.h:210: error: for each function it appears in.)
follow_bib.h:211: error: 'RIGHT' undeclared (first use in this function)
follow_bib.h: In function 'countTicks':
follow_bib.h:279: warning: implicit declaration of function 'OdometryData'
ChDeAsuro.c: In function 'followline':
ChDeAsuro.c:160: error: 'LEFT' undeclared (first use in this function)
ChDeAsuro.c:162: error: 'RIGHT' undeclared (first use in this function)
ChDeAsuro.c:164: error: 'CENTER' undeclared (first use in this function)
ChDeAsuro.c:285: warning: implicit declaration of function 'PrintInt'
ChDeAsuro.c:286: warning: implicit declaration of function 'SerPrint'
ChDeAsuro.c: In function 'main':
ChDeAsuro.c:337: warning: implicit declaration of function 'Msleep'
ChDeAsuro.c:338: error: 'LEFT' undeclared (first use in this function)
ChDeAsuro.c:345: error: 'RIGHT' undeclared (first use in this function)
make: *** [ChDeAsuro.o] Error 1

ExitCode 2


ich habe das Programm von der site

http://www.informatik.fh-wiesbaden.de/~linn/vpdv0708/asuro1/downloads.html

die angegeben makefile habe ich bei Optionen in das Fenster makefle per copy&Paste auch mal eingefügt dann kommt der Fehler


Make
C:\asuro\FirstTry>C:\WinAVR\utils\bin\make.exe all
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
-------- begin --------
avr-gcc --version
avr-gcc (WinAVR 20080610) 4.3.0
Copyright (C) 2008 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.

make: *** No rule to make target `ChDeAsuro.hex', needed by `all'. Stop. ExitCode 2
>Ready.


hoffe das hilft weiter für eine lösung des problems
mfg tim

Osser
18.11.2008, 22:16
Hi ezo2k3,

den Makefile in Optionen solltest Du bitte nicht ändern, ist meistens, wie auch hierfür, unnötig.

Wichtig ist, dass Du alle Dateien im AF-Projekt aufnimmst, d.h. alle *.c und *.h Dateien mittels Rechtsklick auf das Projekt (links vom Sourcekode Editor) und "Add file" zufügst.

Dann das Projekt speichern und compilieren (Make all).

So sollte es dann eigentlich gehen.

Gruss,
O.

ezo2k3
18.11.2008, 22:23
kannst du nicht viellcht probieren ob du ne .hex datei bekommst ? ...
ich habe jetzt nur bei optionen das WinAVR verzeichniss und das lib verzeichniss angegeben .. sonst nichts ... alles auf default gelassen , alle dateien ins projekt gespeichert .. trotzdem den fehler



>Session Environment Variables:
AF_AVRDIR=C:\WinAVR
AF_PROJECT=Project1
AF_SOURCE_FILES=ChDeAsuro.c
AF_ASM_SRC_FILES=
AF_PRGDIR=C:\Programme\AsuroFlash
AF_PRJDIR=C:\asuro
AF_ASURO_LIB_PATH=C:\asuro\lib
File ChDeAsuro.c saved.
File Asuro.h saved.
File follow_bib.h saved.
>Default make_all.cmd file created.
>Default makefile created.
Make
C:\asuro>C:\WinAVR\utils\bin\make.exe all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=ChDeAsuro.lst -IC:\Programme\AsuroFlash\include ChDeAsuro.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > ChDeAsuro.d; \
[ -s ChDeAsuro.d ] || rm -f ChDeAsuro.d
-------- begin --------
avr-gcc --version
avr-gcc (WinAVR 20080610) 4.3.0
Copyright (C) 2008 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 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=ChDeAsuro.lst -IC:\Programme\AsuroFlash\include ChDeAsuro.c -o ChDeAsuro.o
In file included from asuro.h:34,
from ChDeAsuro.c:13:
c:/winavr/lib/gcc/../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>."
In file included from ChDeAsuro.c:14:
follow_bib.h: In function 'setspeed':
follow_bib.h:69: warning: implicit declaration of function 'Gettime'
follow_bib.h: In function 'photosensoren_auslesen':
follow_bib.h:210: error: 'LEFT' undeclared (first use in this function)
follow_bib.h:210: error: (Each undeclared identifier is reported only once
follow_bib.h:210: error: for each function it appears in.)
follow_bib.h:211: error: 'RIGHT' undeclared (first use in this function)
follow_bib.h: In function 'countTicks':
follow_bib.h:279: warning: implicit declaration of function 'OdometryData'
ChDeAsuro.c: In function 'followline':
ChDeAsuro.c:160: error: 'LEFT' undeclared (first use in this function)
ChDeAsuro.c:162: error: 'RIGHT' undeclared (first use in this function)
ChDeAsuro.c:164: error: 'CENTER' undeclared (first use in this function)
ChDeAsuro.c:285: warning: implicit declaration of function 'PrintInt'
ChDeAsuro.c:286: warning: implicit declaration of function 'SerPrint'
ChDeAsuro.c: In function 'main':
ChDeAsuro.c:337: warning: implicit declaration of function 'Msleep'
ChDeAsuro.c:338: error: 'LEFT' undeclared (first use in this function)
ChDeAsuro.c:345: error: 'RIGHT' undeclared (first use in this function)
make: *** [ChDeAsuro.o] Error 1


ExitCode 2

ezo2k3
18.11.2008, 23:33
ich merke gerade .. sobald ich nen komplexes program ausm netz ziehe hab ich generell fehler meldungen ... keine ahnung woran das liegt :-(

Osser
24.11.2008, 14:50
Hi ezo2k3,


uploade mal ein Ziparchiv des ganzen Projekts, also Projekdatei und alle Source-Dateien, hier im Forum.
Dann kann ich das mal testen.

Gruss,

O.