Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print42.bas no longer works in build 1935 (*solved*)
#1
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.
Reply
#2
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.
Reply
#3
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
Reply
#4
I think it's fixed now.
Can you download ZX Basic 1.4.0-s1945 and check if it's ok now?
Reply
#5
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
Reply
#6
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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)