I've just installed PureBasic 6.21 on ZorinOS 17.3 (based on Ubuntu 22.04).
An old program of mine which compiles fine under macOS 15.6 (and whatever OS X version was current when I wrote this 6 years ago) fails with this error on the above Linux:
Code: Select all
[COMPILER] Line 49: Constant not found #PB_Menu_Quit.
Code: Select all
; *** the includes, settings, app window opening etc are above and not shown here to keep code shorter in forum ***
; Event loop - just catch the exiting event(s)
; All other events should be module-level
Define eventNumber.i = 0
Repeat
eventNumber = WaitWindowEvent()
If eventNumber = #PB_Event_Menu And EventMenu() = #PB_Menu_Quit ; *** <= THIS IS LINE 49 ***
PostEvent(#PB_Event_CloseWindow)
EndIf
Until eventNumber = #PB_Event_CloseWindow
End
TBH it's been a few years since I used PB in anger, so maybe the above is not the best way to do things, but the fact that a constant seems to be missing in the Linux version is a bit of a worry.
Does anyone else have this issue or is it just me?
Thanks