PDA

View Full Version : #compiled freeBasic sections and thinBundle



DirectuX
31-10-2019, 10:11
Ciao Eros,

I am curious about thinBundle behaviour towards freeBasic code : are #Compiled sections removed from script after compilation but before bundling ? In other words, are #Compiled sections compiled each time or it's a .dll that is bundled and corresponding code taken out from script ?

Petr Schreiber
01-11-2019, 20:19
I wanted to answer this question by retrieving DLL timestamp, but it seems there is no DLL produced in Bundled mode.

It can be demonstrated by running this example from thinAir (okay), and from Bundled EXE (not okay, the DLL is not there).



uses "console", "file"


#Compiled


sub SayHi cdecl alias "SayHi"() export
print "Ciao"
end sub


#EndCompiled


printl "Output" in 14
printl Compiled_LastCompile_Output


printl "DLL name" in 14
printl Compiled_DLL_FileName
printl "DLL " + iif$(FILE_Exists(Compiled_DLL_FileName)>0, "EXISTS", "DOES NOT EXIST")
printl


printl "Function call" in 14
SayHi()


waitkey




Petr

John Spikowski
04-11-2019, 21:10
Eros,

Outstanding news that you are moving on from PowerBasic. I was hoping O2 but FreeBasic is a step in the right direction.