#PB_Compiler_ExecutableFormat is 0 for Console not 2

Linux specific forum
juergenkulow
Enthusiast
Enthusiast
Posts: 540
Joined: Wed Sep 25, 2019 10:18 am

#PB_Compiler_ExecutableFormat is 0 for Console not 2

Post 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
Fred
Administrator
Administrator
Posts: 16581
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: #PB_Compiler_ExecutableFormat is 0 for Console not 2

Post by Fred »

The console format is a Windows only feature, as told here: https://www.purebasic.com/documentation ... tives.html
Post Reply