Is program an executable or just compiled?

Just starting out? Need help? Post your questions and find answers here.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Is program an executable or just compiled?

Post by davido »

Is there a way of knowing if the running program was just compiled or is from an executable file?

I'm sure this has been discussed before but I have been unable to locate it.
I thought that a #PB_Compiler constant might work, but I couldn't get any to work.
DE AA EB
Olli
Addict
Addict
Posts: 1071
Joined: Wed May 27, 2020 12:26 pm

Re: Is program an executable or just compiled?

Post by Olli »

It is an executable.
deeproot
Enthusiast
Enthusiast
Posts: 271
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: Is program an executable or just compiled?

Post by deeproot »

Not sure if this helps and I've never used it myself - but this is in the Purebasic IDE documentation section, about constants in Compiler Options :
#PB_Editor_CreateExecutable
If enabled, this constant holds a value of 1 if the code is compiled with the "Create Executable" menu or 0 if "Compile/Run" was used.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Is program an executable or just compiled?

Post by davido »

@deeproot,
Thank you, I'll give it a try.

I did look at the manual but managed to overlook that one. :oops:
DE AA EB
Post Reply