Casio SDK error?
12 posts
• Page 1 of 2 • 1, 2
Casio SDK error?
Hi, I'm getting te following error messages. But when I compile my code using gcc, I don't get them. What's the problem/what sould I do to fix it?
set SHC_INC=C:\CASIOSDK\OS\SH\include
set PATH=C:\CASIOSDK\OS\SH\bin
set SHC_LIB=C:\CASIOSDK\OS\SH\bin
set SHC_TMP=C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\Debug
WARNING: The following dependant file(s) do not exist: "console.h" "fract.h" "matz.h" "MonochromeLib.h" "poly.h". Line: 83
WARNING: The following dependant file(s) do not exist: "console.h" "fract.h" "matz.h" "MonochromeLib.h" "poly.h". Line: 100
"C:\CASIOSDK\OS\SH\bin\shc.exe" -subcommand=C:\Users\Xtrm0\AppData\Local\Temp\hmk9AEA.tmp
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\fract.h(20) : C2500 (E) Illegal token "isvalid_fract"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\fract.h(20) : C2500 (E) Illegal token "{"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(5) : C2500 (E) Illegal token "&"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(5) : C2500 (E) Illegal token ","
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(8) : C2500 (E) Illegal token "&"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(8) : C2500 (E) Illegal token ","
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(28) : C2500 (E) Illegal token "unsigned"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(145) : C2500 (E) Illegal token "int"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(145) : C2225 (E) Undeclared name "i"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(146) : C2500 (E) Illegal token "int"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(146) : C2225 (E) Undeclared name "st"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(147) : C2500 (E) Illegal token "int"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(147) : C2225 (E) Undeclared name "pars"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(147) : C2220 (E) Modifiable lvalue required for "="
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(148) : C2500 (E) Illegal token "char"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(148) : C2225 (E) Undeclared name "input"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(148) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(149) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(150) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(151) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(153) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(156) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(156) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(157) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(158) : C2500 (E) Illegal token "unsigned"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(159) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(162) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(173) : C2201 (E) Cannot convert parameter "2"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(175) : C2500 (E) Illegal token "unsigned"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(176) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(179) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(190) : C2201 (E) Cannot convert parameter "2"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(233) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(234) : C2500 (E) Illegal token "unsigned"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(235) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(238) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(249) : C2201 (E) Cannot convert parameter "2"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(251) : C2500 (E) Illegal token "unsigned"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(252) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(255) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(266) : C2201 (E) Cannot convert parameter "2"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(271) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(272) : C2500 (E) Illegal token "unsigned"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(273) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(276) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(287) : C2201 (E) Cannot convert parameter "2"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(289) : C2500 (E) Illegal token "unsigned"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(290) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(293) : C2233 (E) Illegal array reference
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(304) : C2201 (E) Cannot convert parameter "2"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\aritmetic_processor.c(320) : C2305 (E) Void function returns value
- helder7
- Senior Member
- Posts: 369
- Joined: Tue Jan 03, 2012 11:24 pm
- Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400
WARNING: The following dependant file(s) do not exist: "console.h" "fract.h" "matz.h" "MonochromeLib.h" "poly.h". Line: 83
you need include these files
you need include these files
SiO2 + CaCO3 ----------> CaSiO3 + CO2
"WARNING: The following dependant file(s) do not exist:" In #include directive you have to say the path to the file (from the actual file).
Illegal token "something" means generally there is an error before "something".
In fract.h you use the type bool. There is no type "bool" in C.
There is no "&" in the "console.h" file I gived to you so I don't know what you have changed in.
aritmetic_processor.c(28) : it's a wrong syntax for a cast, the right one is : (unsigned)i
aritmetic_processor.c(145) : The Renesas compiler is C89. In C89, variables must be declared before any other code in function.
If you have read the SDK documentation, you know printf is not supported. (In console.c/h, I provide you an equavalent named print)
And finally "aritmetic_processor.c(320) : C2305 (E) Void function returns value", if you don't understand that, stop programming ^^
Illegal token "something" means generally there is an error before "something".
In fract.h you use the type bool. There is no type "bool" in C.
There is no "&" in the "console.h" file I gived to you so I don't know what you have changed in.
aritmetic_processor.c(28) : it's a wrong syntax for a cast, the right one is : (unsigned)i
aritmetic_processor.c(145) : The Renesas compiler is C89. In C89, variables must be declared before any other code in function.
If you have read the SDK documentation, you know printf is not supported. (In console.c/h, I provide you an equavalent named print)
And finally "aritmetic_processor.c(320) : C2305 (E) Void function returns value", if you don't understand that, stop programming ^^
I understand everything. I havent changed the files you gave me. And they are all in the same directory as the app, and are also included in the sdk. I'm also predeclaring vars.
Ill be chaging the return 0 (I forgot to remove the return 0 because i just changed the name and type of the main function to support the calculator, im not a #f*^@ noob)
About the bool, why is the compilar still on c89, aint the calculator from 2005?
Ill be chaging the return 0 (I forgot to remove the return 0 because i just changed the name and type of the main function to support the calculator, im not a #f*^@ noob)
About the bool, why is the compilar still on c89, aint the calculator from 2005?
Thanks for yhe help, now I have only got this error on the header (all the files you sent return are exactly the same as the download):
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(5) : C2500 (E) Illegal token "&"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(5) : C2500 (E) Illegal token ","
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(8) : C2500 (E) Illegal token "&"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(8) : C2500 (E) Illegal token ","
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(5) : C2500 (E) Illegal token "&"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(5) : C2500 (E) Illegal token ","
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(8) : C2500 (E) Illegal token "&"
C:\Users\Xtrm0\Documents\CASIO\fx-9860G SDK\XtrmCAS\console.h(8) : C2500 (E) Illegal token ","
- Code: Select all
#ifndef _CONSOLE
#define _CONSOLE
void clear();
void putchar(char c);
void print(char* str, ...);
void print_int(int n);
char getchar();
#endif
So I have uploaded the file, cause I'm unable to find where is the error. Please help.
Regz,
Xtrm0
[ATTACH=CONFIG]38[/ATTACH]
Regz,
Xtrm0
[ATTACH=CONFIG]38[/ATTACH]
- Attachments
-
Project.zip
- (0 Bytes) Downloaded 862 times
12 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 22 guests