Dim Shared As Boolean bSound = True
#Ifdef __FB_WIN32__
If bSound Then
Dim As String aSoundFiles(0 To ...) = {"Test1", "Test2", "Test3"}
? "Test"
End If
#Endif
? "End"
Sleep
FreeBASIC Compiler - Version 1.08.0 (2020-04-30), built for win64 (64bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
standalone
target: win64, x86-64, 64bit
backend: gcc
FreeBASIC Compiler - Version 1.07.1 (2019-09-27), built for win64 (64bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
standalone
target: win64, x86-64, 64bit
OK here 64 and 32 bit compiler
compiling . . .
Success ( 0.8300442999461666 seconds)
FreeBASIC Compiler - Version 1.07.1 (2019-09-27), built for win64 (64bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
standalone
-gen gcc -Wc -O3
FreeBASIC Compiler - Version 1.07.1 (2019-09-27), built for win32 (32bit)
Copyright (C) 2004-2019 The FreeBASIC development team.
standalone
-gen gcc -Wc -O3
I don't know anything about
Version 1.08.0 (2020-04-30), built for win64 (64bit)
Is it a tester for the next official download?
Where did you get it?
FreeBASIC Compiler - Version 1.08.0 (2020-04-30), built for win64 (64bit)
Where does that originate from?
The last build from St_W is: Version 1.08.0 (2020-01-12), built for win64 (64bit)
This works without any problems ...
As already written above, I cannot remember.
Anyhow, I replaced the fbc.exe with the latest St_W build and it still crashed. I copied the whole content from the zip archive to my Freebasic folder then it worked properly. I assume that also some files within the folders didn't work properly.
Yes, the recent change to array descriptors will cause crashes like this if you mix fbc.exe and libfb.a from different compiler versions, although usually ABI changes to the runtime are rare and you get away with doing it.