PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Hilfe!!!



2stoned
12.07.2007, 23:16
Hallo...

Habe folgendes Problem:



C:\WinAVR\Asuro\FirstTry>make all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -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) 3.3.1
Copyright (C) 2003 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=test.lst test.c -o test.o
test.c: In function `DriveCircle':
test.c:4: warning: implicit declaration of function `Encoder_Init'
test.c:42: warning: implicit declaration of function `Encoder_Set'
test.c:7: warning: `segments_left' might be used uninitialized in this function
test.c:8: warning: `segments_right' might be used uninitialized in this function
avr-gcc -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.o test.o asuro.o --output test.elf -Wl,-Map=test.map,--cref -lm
test.o(.text+0x1e): In function `DriveCircle':
C:\WinAVR\Asuro\FirstTry/test.c:4: undefined reference to `Encoder_Init'
test.o(.text+0x6c):C:\WinAVR\Asuro\FirstTry/test.c:42: undefined reference to `Encoder_Set'
test.o(.text+0x8a):C:\WinAVR\Asuro\FirstTry/test.c:58: undefined reference to `encoder'
test.o(.text+0x8e):C:\WinAVR\Asuro\FirstTry/test.c:58: undefined reference to `encoder'
test.o(.text+0x98):C:\WinAVR\Asuro\FirstTry/test.c:58: undefined reference to `encoder'
test.o(.text+0x9c):C:\WinAVR\Asuro\FirstTry/test.c:58: undefined reference to `encoder'
test.o(.text+0xb2):C:\WinAVR\Asuro\FirstTry/test.c:63: undefined reference to `encoder'
test.o(.text+0xb6):C:\WinAVR\Asuro\FirstTry/test.c:63: more undefined references to `encoder' follow
test.o(.text+0xec): In function `DriveCircle':
C:\WinAVR\Asuro\FirstTry/test.c:76: undefined reference to `Msleep'
test.o(.text+0xf6):C:\WinAVR\Asuro\FirstTry/test.c:77: undefined reference to `encoder'
test.o(.text+0xfa):C:\WinAVR\Asuro\FirstTry/test.c:77: undefined reference to `encoder'
test.o(.text+0x104):C:\WinAVR\Asuro\FirstTry/test.c:77: undefined reference to `encoder'
test.o(.text+0x108):C:\WinAVR\Asuro\FirstTry/test.c:77: undefined reference to `encoder'
test.o(.text+0x154): In function `DriveLength':
C:\WinAVR\Asuro\FirstTry/test.c:89: undefined reference to `Encoder_Init'
test.o(.text+0x1a6):C:\WinAVR\Asuro\FirstTry/test.c:101: undefined reference to `Encoder_Set'
test.o(.text+0x1aa):C:\WinAVR\Asuro\FirstTry/test.c:103: undefined reference to `encoder'
test.o(.text+0x1ae):C:\WinAVR\Asuro\FirstTry/test.c:103: undefined reference to `encoder'
test.o(.text+0x1b8):C:\WinAVR\Asuro\FirstTry/test.c:103: undefined reference to `encoder'
test.o(.text+0x1bc):C:\WinAVR\Asuro\FirstTry/test.c:103: undefined reference to `encoder'
test.o(.text+0x1d8):C:\WinAVR\Asuro\FirstTry/test.c:108: undefined reference to `PrintInt'
test.o(.text+0x1f4):C:\WinAVR\Asuro\FirstTry/test.c:114: undefined reference to `Msleep'
test.o(.text+0x1fa):C:\WinAVR\Asuro\FirstTry/test.c:119: undefined reference to `encoder'
test.o(.text+0x1fe):C:\WinAVR\Asuro\FirstTry/test.c:119: undefined reference to `encoder'
test.o(.text+0x202):C:\WinAVR\Asuro\FirstTry/test.c:119: undefined reference to `encoder'
test.o(.text+0x206):C:\WinAVR\Asuro\FirstTry/test.c:119: undefined reference to `encoder'
test.o(.text+0x2f4):C:\WinAVR\Asuro\FirstTry/test.c:131: undefined reference to `encoder'
test.o(.text+0x2f8):C:\WinAVR\Asuro\FirstTry/test.c:131: more undefined references to `encoder' follow
test.o(.text+0x3f4): In function `main':
C:\WinAVR\Asuro\FirstTry/test.c:180: undefined reference to `PrintInt'
test.o(.text+0x45a):C:\WinAVR\Asuro\FirstTry/test.c:215: undefined reference to `Msleep'
make: *** [test.elf] Error 1

> Process Exit Code: 2

Wäre schön wenn mir jemand helfen könnte.

Gruß
2stoned

Sternthaler
12.07.2007, 23:51
include mal asuro.h in deinem Source test.c entweder mit:
#include "asuro.h"
oder mit:
#include <asuro.h>

[Edit]
Ich sehe gerade, dass du dieses Problem schon in diesem Thread (https://www.roboternetz.de/phpBB2/zeigebeitrag.php?p=298357) beschrieben hast. [-X
Warum versuchst du es nicht an der Stelle, weitere Fragen zu stellen, wenn du die dortigen Antworten nicht verstehst. Es tut keinem weh, wenn man nochmal nachfragt.
Schließlich konnte dir dort ja auch mit LEFT und RIGHT geholfen werden.

P.S.: Einen Bouns gibt es aber für den [ code ]-Tag =D>
Und weil dies erst dein 4-ter Beitrag ist: Auch von mir ein: Herzlich willkommen im Forum.

2stoned
13.07.2007, 00:24
Danke schon mal für diesen Tip....werde es gleich ausprobieren.

Hättest du denn evtl ne Idee wegen dem LEFT und RIGHT??

Ich komm schon seit Tagen nicht mehr weiter......

Gruß
2stoned

2stoned
13.07.2007, 00:28
Nun sieht es so aus:


C:\WinAVR\Asuro\FirstTry>make all
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 3.3.1
Copyright (C) 2003 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 -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.o test.o asuro.o --output test.elf -Wl,-Map=test.map,--cref -lm
test.o(.text+0x1e): In function `DriveCircle':
C:\WinAVR\Asuro\FirstTry/test.c:4: undefined reference to `Encoder_Init'
test.o(.text+0x6c):C:\WinAVR\Asuro\FirstTry/test.c:42: undefined reference to `Encoder_Set'
test.o(.text+0x8a):C:\WinAVR\Asuro\FirstTry/test.c:58: undefined reference to `encoder'
test.o(.text+0x8e):C:\WinAVR\Asuro\FirstTry/test.c:58: undefined reference to `encoder'
test.o(.text+0x98):C:\WinAVR\Asuro\FirstTry/test.c:58: undefined reference to `encoder'
test.o(.text+0x9c):C:\WinAVR\Asuro\FirstTry/test.c:58: undefined reference to `encoder'
test.o(.text+0xb2):C:\WinAVR\Asuro\FirstTry/test.c:63: undefined reference to `encoder'
test.o(.text+0xb6):C:\WinAVR\Asuro\FirstTry/test.c:63: more undefined references to `encoder' follow
test.o(.text+0xec): In function `DriveCircle':
C:\WinAVR\Asuro\FirstTry/test.c:76: undefined reference to `Msleep'
test.o(.text+0xf6):C:\WinAVR\Asuro\FirstTry/test.c:77: undefined reference to `encoder'
test.o(.text+0xfa):C:\WinAVR\Asuro\FirstTry/test.c:77: undefined reference to `encoder'
test.o(.text+0x104):C:\WinAVR\Asuro\FirstTry/test.c:77: undefined reference to `encoder'
test.o(.text+0x108):C:\WinAVR\Asuro\FirstTry/test.c:77: undefined reference to `encoder'
test.o(.text+0x154): In function `DriveLength':
C:\WinAVR\Asuro\FirstTry/test.c:90: undefined reference to `Encoder_Init'
test.o(.text+0x1a6):C:\WinAVR\Asuro\FirstTry/test.c:102: undefined reference to `Encoder_Set'
test.o(.text+0x1aa):C:\WinAVR\Asuro\FirstTry/test.c:104: undefined reference to `encoder'
test.o(.text+0x1ae):C:\WinAVR\Asuro\FirstTry/test.c:104: undefined reference to `encoder'
test.o(.text+0x1b8):C:\WinAVR\Asuro\FirstTry/test.c:104: undefined reference to `encoder'
test.o(.text+0x1bc):C:\WinAVR\Asuro\FirstTry/test.c:104: undefined reference to `encoder'
test.o(.text+0x1d8):C:\WinAVR\Asuro\FirstTry/test.c:109: undefined reference to `PrintInt'
test.o(.text+0x1f4):C:\WinAVR\Asuro\FirstTry/test.c:115: undefined reference to `Msleep'
test.o(.text+0x1fa):C:\WinAVR\Asuro\FirstTry/test.c:120: undefined reference to `encoder'
test.o(.text+0x1fe):C:\WinAVR\Asuro\FirstTry/test.c:120: undefined reference to `encoder'
test.o(.text+0x202):C:\WinAVR\Asuro\FirstTry/test.c:120: undefined reference to `encoder'
test.o(.text+0x206):C:\WinAVR\Asuro\FirstTry/test.c:120: undefined reference to `encoder'
test.o(.text+0x2f4):C:\WinAVR\Asuro\FirstTry/test.c:132: undefined reference to `encoder'
test.o(.text+0x2f8):C:\WinAVR\Asuro\FirstTry/test.c:132: more undefined references to `encoder' follow
test.o(.text+0x3f4): In function `main':
C:\WinAVR\Asuro\FirstTry/test.c:181: undefined reference to `PrintInt'
test.o(.text+0x45a):C:\WinAVR\Asuro\FirstTry/test.c:216: undefined reference to `Msleep'
make: *** [test.elf] Error 1

> Process Exit Code: 2

Sternthaler
13.07.2007, 01:20
Ich schreibe in deinem anderen Thead weiter.
Hier geht es zu meinem Geschreibsel. (https://www.roboternetz.de/phpBB2/zeigebeitrag.php?p=298448#298448)

damaltor
13.07.2007, 16:57
damit ist dieser hier geschlossen.