Hi
I have just Compiled couple of games with compiler 2.7. and Funny thing is. many of the games seems to run in 1 vbl. or atleast faster than they previous did.
But there is some titles that the Compiler refuses. and im not a STOS hacker, so is there anybody out there who can help me out.
common error I get is : Non declared array in line 60
it runs fine in STOS basic.
the line is:
60 if A<1 then goto SLUT else gosub BANA(A) : inc LF
any ideas?
Games Re-compiling
Games Re-compiling
- Atari ST/FM/E - Mega sTe - Portfolio - Falcon 030 FX 3 in 1 -- Atari 7800/Lynx/Jaguar -
- FTP... Ask for info
- Atari Legend (Games all-a-round)
- Paradize (Chip Music)
- Elite (Atari Softs)
- The Legion (Demos)
- Alive Maggie Team
_/|\_YM-RockerZ_/|\_
- FTP... Ask for info
- Atari Legend (Games all-a-round)
- Paradize (Chip Music)
- Elite (Atari Softs)
- The Legion (Demos)
- Alive Maggie Team
_/|\_YM-RockerZ_/|\_
Re: Games Re-compiling
It may be worthwhile posting the BAS file(s)? Too many possibilities Otherwise but It may be automatically declaring the array in interpreted mode but not in compiled? Or maybe an extension is broken in the compiled verson?
('< o o o o |''| STM,2xSTFM,2xSTE+HD,C-Lab Falcon MK2+HD,Satandisk,Ultrasatandisk,Ethernat.
Re: Games Re-compiling
STOS 2.6 with Compiler version 2.7 doesn't seem to support forward declarations.
That is: the compiler will throw an error if an array is used but declared in a later line number even if the array is initialised error by using a goto\gosub. I don't know about writing compilers, but this seems like quite an advanced thing to do and if it doesn't work in 2.7 it is unlikely it would work in previous versions.
When I used STOS a lot I didn't know what forward declarations were.
Billy Allan discovered a few problems with the compiler when he was writing The Missing Link, but I don't think that was one of them.
That is: the compiler will throw an error if an array is used but declared in a later line number even if the array is initialised error by using a goto\gosub. I don't know about writing compilers, but this seems like quite an advanced thing to do and if it doesn't work in 2.7 it is unlikely it would work in previous versions.
When I used STOS a lot I didn't know what forward declarations were.
Billy Allan discovered a few problems with the compiler when he was writing The Missing Link, but I don't think that was one of them.
Still got, still working: Atari 4Mb STe, MegaST 2, 520STFM (x2), 2.5Mb STF, Atari 2600JR, Flashback 8 Gold.
Hardware: PC720B, Cumana CSA 354, Ultimate Ripper, Discovery Cartridge, Blitz Turbo, Synchro Express II (US and UK Versions).
Hardware: PC720B, Cumana CSA 354, Ultimate Ripper, Discovery Cartridge, Blitz Turbo, Synchro Express II (US and UK Versions).