IonicWind Software

IWBasic => General Questions => Topic started by: obelisk on April 26, 2011, 02:07:12 PM

Title: Error in Compiling
Post by: obelisk on April 26, 2011, 02:07:12 PM
I am getting an error when compiling a project that worked when I first installed V2. I now installed the latest version and when I compile I get

...
...
File: C:\Program Files\iwbdev2\Work\P\eva.eba (208) Error: G.I.Q. does not accept type double
File: C:\Program Files\iwbdev2\Work\P\eva.eba (237) Error: G.I.Q. does not accept type double
File: C:\Program Files\iwbdev2\Work\P\eva.eba (252) Error: G.I.Q. does not accept type double
File: C:\Program Files\iwbdev2\Work\P\eva.eba (256) Error: G.I.Q. does not accept type double
File: C:\Program Files\iwbdev2\Work\P\eva.eba (262) Error: G.I.Q. does not accept type double
Error(s) in compiling "C:\Program Files\iwbdev2\Work\P\eva.eba"
Build Failed

Any ideas?
Title: Re: Error in Compiling
Post by: sapero on April 26, 2011, 04:19:45 PM
An operator expected int64 or uint64, but a double was passed..
What is the expression?

Please always supply some code in the future.
Title: Re: Error in Compiling
Post by: obelisk on April 26, 2011, 04:38:28 PM
DECLARE eval(expression:STRING),DOUBLE
...
...
SUB eval(expression:STRING),DOUBLE
DEF expr,op:string
DEF n,i:int
DEF value1,value2,res:double

   expr = trim(expression)
   'IF noprob_value(expr)=TRUE THEN RETURN val(expr)     "This is where I get the first error"
...
...

I have other subs that return doubles and there no errors for them.
I don't have any reference to int64 or uint64 anywhere in the source.
I don't understand because I have not modified anything and the first release of IWBasic 2, which I used as a trial, compiled fine.

Thank you for your help
Title: Re: Error in Compiling
Post by: obelisk on April 28, 2011, 09:33:20 PM
Everything is now solved thanks to Sapero!

Thank you!
Title: Re: Error in Compiling
Post by: LarryMc on April 28, 2011, 09:51:57 PM
Quote from: obelisk on April 28, 2011, 09:33:20 PM
Everything is now solved thanks to Sapero!

Thank you!

So what fixed your problem?

LarryMc
Title: Re: Error in Compiling
Post by: obelisk on April 28, 2011, 09:55:07 PM
His work!
He found issues in the compiler and gave me information on my coding.