Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Usage of print42?
#1
Hi.

I'm trying to use the print42 library but whenever I reference it my program can no longer compile, I get a "Undeclared variable printAt42Coords"

I have found an old thread from 2015 with the same problem which was solved, I have tried the -o0 optimization level but it does not make a difference.

Any idea?

Also, I see the print42 routine includes a "isAt:" label that checks for a char 22, what would be the correct syntax to use it?

Cheers.
Reply
#2
What compiler version are you using?
Reply
#3
(02-02-2020, 07:24 PM)boriel Wrote: What compiler version are you using?

zxb 1.9.8

BTW, I have managed to get it to work changing the place of printat42, if I place it after the print42 function it compiles. It's like it doesn't recognizes the label because it's below in other function.
Reply
#4
But aren't you using
Code:
#include <print42.bas>
at the beginning of your code?
Reply
#5
(02-02-2020, 11:08 PM)boriel Wrote: But aren't you using
Code:
#include <print42.bas>
at the beginning of your code?


Yes, I'm using it, I have modified the print42.bas to get it to work, that's what I mean.
Reply
#6
I haven't modified print42.bas at all.
This little program compiles and works ok:

Code:
#include <print42.bas>
print42("this is a test")

If you are getting errors, please provide a short code snippet so I can test it's not a bug. Smile
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)