Odd Compiler Error
Posted: 28 May 2006, 11:41 AM
I had a segment of code the subtracted an offset from a variable:
which compiled fine. But during testing I commented out the offset:
which generated the following errors:
BasicZX_PW.bas:334: Internal Error: no means to generate code for expression
BasicZX_PW.bas:338: Internal Error: no means to generate code for expression
Obviously, there is no need for the Ax = Ax statement but it is an odd error.
Paul
Code: Select all
330 Ax = (PotPos * 5.0) - 2.5
331 Ax = Ax - Ax0
332
333 OutS = "-"
334 if Ax < 0.0 then
335 OutS = "+"
336 end if
337
338 Ax = (Fix(Abs(Ax * 100.0)) / 100.0)
Code: Select all
330 Ax = (PotPos * 5.0) - 2.5
331 Ax = Ax '- AxO
332
333 OutS = "-"
334 if Ax < 0.0 then
335 OutS = "+"
336 end if
337
338 Ax = (Fix(Abs(Ax * 100.0)) / 100.0)
BasicZX_PW.bas:334: Internal Error: no means to generate code for expression
BasicZX_PW.bas:338: Internal Error: no means to generate code for expression
Obviously, there is no need for the Ax = Ax statement but it is an odd error.
Paul