Der Programmcode:
Und die Fehlermeldung:Code:#include "RP6ControlLib.h" int main() { initRP6Control(void); string s; s="Hallo"; writeString(s); return 0; }
lgCode:> "E:\Daten\RP6\Programme\Eigene Programme\String\\make_all.bat" E:\Daten\RP6\Programme\Eigene Programme\String>set LANG=C E:\Daten\RP6\Programme\Eigene Programme\String>make all -------- begin -------- avr-gcc (GCC) 4.1.2 (WinAVR 20070525) 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. Compiling: String.c avr-gcc -c -mmcu=atmega32 -I. -gdwarf-2 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=String.lst -I../RP6lib -I../RP6lib/RP6control -I../RP6lib/RP6common -std=gnu99 -MD -MP -MF .dep/String.o.d String.c -o String.o String.c:1:29: error: RP6RobotBaseLib.h: No such file or directory String.c:5: warning: function declaration isn't a prototype String.c: In function 'main': String.c:6: warning: implicit declaration of function 'initRP6RobotBase' String.c:7: error: 'string' undeclared (first use in this function) String.c:7: error: (Each undeclared identifier is reported only once String.c:7: error: for each function it appears in.) String.c:7: error: expected ';' before 's' String.c:8: error: 's' undeclared (first use in this function) String.c:9: warning: implicit declaration of function 'writeString' String.c:11:3: warning: no newline at end of file make: *** [String.o] Error 1 > Process Exit Code: 2 > Time Taken: 00:01
Michi






Zitieren

Lesezeichen