Forum
print42.bas no longer works in build 1935 (*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: print42.bas no longer works in build 1935 (*solved*) (/showthread.php?tid=696)



print42.bas no longer works in build 1935 (*solved*) - LTee - 08-09-2015

Hi all, it's been a long time! Smile

I upgraded to 1.4.0 build 1935 today and discovered that I can no longer use the print42 library. This simple program now won't compile any more:

Code:
#include <print42.bas>

printat42(0, 0)
print42("42 column printing!")

... giving instead the following error:

Code:
test.bas:16: Undeclared identifier "printAt42Coords"

Not a big problem (I just reverted back to build 1923 for now) but I thought you might like to know about it because I'm not sure what else might be affected.


Re: print42.bas no longer works in build 1935 - boriel - 08-09-2015

This seems to be a bug in the optimization level. Please, try compiling with -O1 (ZX Basic uses now -O2 by default from revision 1935 and newer).
Or try -O2 and -O3 and with 1925 and tell me if they work. :roll:
Will check it ASAP, to see how to fix it.


Re: print42.bas no longer works in build 1935 - LTee - 08-10-2015

You're right, I should've thought of trying that!

In 1935 it doesn't build by default but I can make it build by specifying -O1 or -O0.
In 1923 it builds by default but I can make it fail by specifying -O2 or -O3.

Smile


Re: print42.bas no longer works in build 1935 - boriel - 08-20-2015

I think it's fixed now.
Can you download ZX Basic 1.4.0-s1945 and check if it's ok now?


Re: print42.bas no longer works in build 1935 - LTee - 09-05-2015

Hi boriel,

Sorry for the delay - I was away on my holidays! I've now checked the new release and can confirm that it's working fine - many, many thanks for your continued efforts! Smile


Re: print42.bas no longer works in build 1935 - boriel - 09-05-2015

LTee Wrote:Hi boriel,

Sorry for the delay - I was away on my holidays! I've now checked the new release and can confirm that it's working fine - many, many thanks for your continued efforts! Smile
So was I! cheers! Wink