Habe alles neu installiert und eingerichtet. Der Fehler ist jetzt zwar weg jedoch habe ich jetzt ein anderes Problem.
C:\Users\johnwin7\Desktop\AsuroLib-v280rc2\lib\libasuro.a(switches.o): In function `PollSwitch':
C:\Documents and Settings\1stud\Desktop\code\trunk\AsuroLib\lib/switches.c:106: undefined reference to `__muluhisi3'
make: *** [test.elf] Error 1
Build failed with 1 errors and 0 warnings...
Wie genau kann ich denn die komplette Fehlermeldung sehen?
Edit: Hier mal ein Beispielprogramm das ich versucht hab zu kompilieren. Funktioniert aber bei anderen auch nicht...
Code:Danke für die Hilfe.Code:include "asuro.h" /* Um eventuelle Unterschiede zwischen linken und rechtem Motor auszugleichen * definieren wir 2 Werte für fullspedd links und rechts */ #define FULL_L 250 /* Fullspeed linker Motot */ #define FULL_R 220 /* Fullspeed rechter Motor */ /* Motor vorwärts */ void MotorFwd(void) { MotorDir(FWD,FWD); MotorSpeed(FULL_L,FULL_R); } /* Motor rückwärts */ void MotorRwd(void) { MotorDir(RWD,RWD); MotorSpeed(FULL_L,FULL_R); } /* Motor rückwärts Links */ void MotorRwdL(void) { MotorDir(RWD,RWD); MotorSpeed(FULL_L,0); } /* Motor rückwärts Rechts */ void MotorRwdR(void) { MotorDir(RWD,RWD); MotorSpeed(0, FULL_R); } /* Motor stop */ void MotorStop(void) { MotorSpeed(0,0); } int main(void) { unsigned char t1, t2; Init(); while(1) { t1 = PollSwitch(); t2 = PollSwitch(); if(t1 == 0 && t2 == 0) /* keine Taste */ { MotorFwd(); /* vorwärts fahren */ FrontLED(ON); BackLED(OFF,OFF); } else if (t1 && t2 && t1 == t2) { MotorStop(); if(t1 & 0x07) /* Tasten links gedrückt? */ { MotorRwdL(); /* Rückwärtskurve links fahren */ FrontLED(OFF); BackLED(ON,OFF); } if (t1 & 0x38) /* Tasten rechts gedrückt? */ { MotorRwdR(); /* Rückwärtskurve rechts fahren */ FrontLED(OFF); BackLED(OFF,ON); } Msleep(1000); /* 1 Sekunde fahren */ } } return 0; }






Zitieren

Lesezeichen