Forum
Compiler gives strange error message (solved) - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: Compiler gives strange error message (solved) (/showthread.php?tid=2590)



Compiler gives strange error message (solved) - baltasarq - 12-29-2024

After doing some more changes to my project, zxbc started to complain about "Can't convert non-numeric value to string at compile time", check it out:
Code:
reveni.bas:46: error: Can't convert non-numeric value to string at compile time
reveni.bas:44: error: Can't convert non-numeric value to string at compile time
The second error is signaling a line that... is empty! The first error refers to the following source:
Code:
clrscr()
I think this means that the compiler gets somehow confused about something. I'm attaching the project.
Thanks,
-- Baltasar


RE: Compiler gives strange error message - boriel - 01-02-2025

Yes, I've located the error. Working on it. Thx for reporting!


RE: Compiler gives strange error message - baltasarq - 01-02-2025

Tnaks to you!


RE: Compiler gives strange error message - boriel - 01-04-2025

Ok. Please, try this new beta version and let me know if it works :-)
http://www.boriel.com/files/zxb/zxbasic-v1.18.0-beta8.tar.gz
http://www.boriel.com/files/zxb/zxbasic-v1.18.0-beta8.zip
http://www.boriel.com/files/zxb/zxbasic-v1.18.0-beta8-win32.zip
http://www.boriel.com/files/zxb/zxbasic-v1.18.0-beta8-linux64.tar.gz
http://www.boriel.com/files/zxb/zxbasic-v1.18.0-beta8-macos.tar.gz


RE: Compiler gives strange error message - baltasarq - 01-06-2025

It works perfectly now!! Thank you!