October 30, 2025, 05:21:28 PM

News:

IWBasic runs in Windows 11!


Error in Compiling

Started by obelisk, April 26, 2011, 02:07:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

obelisk

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?

sapero

An operator expected int64 or uint64, but a double was passed..
What is the expression?

Please always supply some code in the future.

obelisk

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

obelisk

Everything is now solved thanks to Sapero!

Thank you!

LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

obelisk

His work!
He found issues in the compiler and gave me information on my coding.