FAQ  •  Register  •  Login

print42.bas no longer works in build 1935 (*solved*)

<<

LTee

Posts: 153

Joined: Tue Jul 07, 2009 2:54 pm

Post Sun Aug 09, 2015 4:45 pm

print42.bas no longer works in build 1935 (*solved*)

Hi all, it's been a long time! :)

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.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sun Aug 09, 2015 10:46 pm

Re: print42.bas no longer works in build 1935

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.
<<

LTee

Posts: 153

Joined: Tue Jul 07, 2009 2:54 pm

Post Mon Aug 10, 2015 9:13 pm

Re: print42.bas no longer works in build 1935

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.

:)
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Thu Aug 20, 2015 10:06 pm

Re: print42.bas no longer works in build 1935

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

LTee

Posts: 153

Joined: Tue Jul 07, 2009 2:54 pm

Post Sat Sep 05, 2015 4:35 pm

Re: print42.bas no longer works in build 1935

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! :)
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sat Sep 05, 2015 5:15 pm

Re: print42.bas no longer works in build 1935

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! :)

So was I! cheers! ;)

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 4 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO