"syntax check" vs "compile"
Posted: Mon Apr 29, 2024 2:24 am
This seems like a bug-- "syntax check" assumes you are compiling an exe
ie: "syntax check" ignores "; ExecutableFormat = Shared dll"
or is this expected?
Help file "Compiling your programs" does not even mention "syntax check" - (btw: the 2nd graphic seems a bit wonky, see below)
(This code should be copied, and saved (ie: notepad) before opening in the IDE.)
Wonky graphic:

ie: "syntax check" ignores "; ExecutableFormat = Shared dll"
or is this expected?
Help file "Compiling your programs" does not even mention "syntax check" - (btw: the 2nd graphic seems a bit wonky, see below)
(This code should be copied, and saved (ie: notepad) before opening in the IDE.)
Code: Select all
CompilerIf #PB_Compiler_ExecutableFormat <> #PB_Compiler_DLL
CompilerWarning("Compiling - NOT a dll")
Import "test.lib"
abcxyz(a)
EndImport
CompilerElse
CompilerWarning("Compiling - IS a dll")
CompilerEndIf
;---- FROM ftpSupport.pbi
ProcedureDLL abcxyz(a)
ProcedureReturn a+1
EndProcedure
; IDE Options = PureBasic 6.10 LTS (Windows - x64)
; ExecutableFormat = Shared dll
; CursorPosition = 12
; Folding = -
; Optimizer
; EnableThread
; EnableXP
; Executable = test.dll
; Compiler = PureBasic 6.10 LTS - C Backend (Windows - x64)
; EnablePurifier
; EnableCompileCount = 1
; EnableBuildCount = 1
; EnableExeConstant
