Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with -Z option (*solved*)
#15
Sorry for being a pest, boriel, but I still can't get this working if I use the -Z option.

If I try to compile the following with 2098:
Code:
PRINT ATTR(0,0)

using the command line:
Code:
zxb attrtest.bas -T -B -a -Z

I still get this:
Code:
attrtest.bas:1: Undeclared function "ATTR"

Things I've tried:
1. Adding a carriage return after the single line of code.
2. Using the .exe version of 2098 rather than the .py version.
3. Installing a clean copy of ZX Basic to a new folder in the root directory of my C drive.
4. Swapping the case of the function from 'ATTR' to 'attr' (you never know!).
5. Using #include to manually include the attr.bas file, both using <attr.bas> and "attr.bas" (with the file copied from the library folder)

All of these things have made no difference if using -Z, I just get the 'undeclared function' error.

However, point 5 above (#including attr.bas) DOES work if I leave the -Z option off! I only get the fail message if I include -Z.

So I have a workaround for that, but I have no idea why my setup is having such problems with -Z. I'll try the same tests on my home machines under Windows 7 and Linux tonight (this machine is Windows XP Pro) and see if I get the same issues there. Smile
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)