Register

Casio SDK error?

Discuss issues related to the fx-9860G Software Development Kit
Member
Posts: 36
Joined: Tue Apr 17, 2012 9:22 pm

Casio SDK error?

Postby xtrm0 » Wed Apr 18, 2012 8:58 pm

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


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

Postby helder7 » Wed Apr 18, 2012 9:13 pm

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
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Member
User avatar
Posts: 27
Joined: Mon Apr 09, 2012 7:09 pm
Location: France

Postby PierrotLL » Wed Apr 18, 2012 10:03 pm

"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 ^^

Member
Posts: 36
Joined: Tue Apr 17, 2012 9:22 pm

Postby xtrm0 » Thu Apr 19, 2012 12:56 am

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?

Member
User avatar
Posts: 27
Joined: Mon Apr 09, 2012 7:09 pm
Location: France

Postby PierrotLL » Thu Apr 19, 2012 10:54 am

Simple, the calc processor is made by Hitachi. Hitachi has 30% of Renesas. Renesas ever made only one compiler for SuperH family and it's on C89. Casio chose the Hitachi processor, so use the Renesas compiler.

About headers, don't include them in "Files in project" in SDK.

Member
Posts: 36
Joined: Tue Apr 17, 2012 9:22 pm

Postby xtrm0 » Thu Apr 19, 2012 10:29 pm

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 ","

Member
Posts: 36
Joined: Tue Apr 17, 2012 9:22 pm

Postby xtrm0 » Thu Apr 19, 2012 10:32 pm

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

Member
Posts: 36
Joined: Tue Apr 17, 2012 9:22 pm

Postby xtrm0 » Thu Apr 19, 2012 10:44 pm

So I have uploaded the file, cause I'm unable to find where is the error. Please help.

Regz,
Xtrm0
[ATTACH=CONFIG]38[/ATTACH]
Attachments
Project.zip
(0 Bytes) Downloaded 679 times

Member
User avatar
Posts: 27
Joined: Mon Apr 09, 2012 7:09 pm
Location: France

Postby PierrotLL » Thu Apr 19, 2012 10:48 pm

Edited :
That's because you include stdio.h which already define putchar and getchar functions.

And an advice, it's not correct to put functions in a header file (without any protection against multiple inclusion
moreover).

Member
Posts: 36
Joined: Tue Apr 17, 2012 9:22 pm

Postby xtrm0 » Thu Apr 19, 2012 10:50 pm

Nope, the only macro I used, as you can see in the zip, is
#define MAXN 100

Next

Return to Casio fx-9860 SDK

Who is online

Users browsing this forum: No registered users and 11 guests