ok
also gibt es da keine möklich keit was zu machen ?
Ich habe nemlich folgendes broblem
Dan kommt dasCode:#include "asuro.h" int main(void) { Init (); MotorDir(FWD,FWD); // Beide Motoren auf vorwärts MotorSpeed(120,120); // Beide Motoren etwa halbe Kraft voraus StatusLED(GREEN); // Status-Leuchtdiode auf grün schalten while (PollSwitch()==0) // Solange keine Kollision erfolgte... { SerWrite(“Alles OK!\n”,10); // ... Euphorie verbreiten } MotorSpeed(0,0); // Kollision! Sofort anhalten! StatusLED(RED); // Statusleuchtdiode rot schalten while (1) { SerWrite(“Aua!\n”,5); // und weinen! } }
das erste program aus den beispilen ( ASURO CD ) hat getanCode:C:\ASURO_src\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 -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 `main': test.c:12: error: stray '\223' in program test.c:12: error: `Alles' undeclared (first use in this function) test.c:12: error: (Each undeclared identifier is reported only once test.c:12: error: for each function it appears in.) test.c:12: error: parse error before "OK" test.c:12: error: stray '\' in program test.c:12: error: stray '\224' in program test.c:21: error: stray '\223' in program test.c:21: error: `Aua' undeclared (first use in this function) test.c:21: error: parse error before '!' token test.c:21: error: stray '\' in program test.c:21: error: stray '\224' in program test.c:24:3: warning: no newline at end of file make: *** [test.o] Error 1 > Process Exit Code: 2
KA warum das nicht get
ich habe bestimt irgent was falsch ein gestelt oder geschriben nur was ist falsch ???
Danke !
Ferdinand







Zitieren

Lesezeichen