Page 1 of 1

#PB_Compiler_ExecutableFormat is 0 for Console not 2

Posted: Mon Feb 06, 2023 10:24 am
by juergenkulow

Code: Select all

; If Compiler-Switch is Console:  Linux generates Error - Windows works. 
Debug #PB_Compiler_ExecutableFormat
Debug #PB_Compiler_Executable 
Debug #PB_Compiler_Console
Debug #PB_Compiler_OS
Debug #PB_OS_Linux 
CompilerIf #PB_Compiler_ExecutableFormat<>#PB_Compiler_Console
  CompilerError "Please switch to Compiler Option to Console."
CompilerEndIf
; Linux x64 Beta 3
; [10:08:15] [COMPILER] Zeile 8: Please switch to Compiler Option to Console.
; Linux without CompilerError
; 0
; 0
; 2
; 2
; 2

; Windows x64 Beta 3 
; 2
; 0
; 2
; 1
; 2

Re: #PB_Compiler_ExecutableFormat is 0 for Console not 2

Posted: Sun Jul 02, 2023 9:25 am
by Fred
The console format is a Windows only feature, as told here: https://www.purebasic.com/documentation ... tives.html