[PB4.2B2] /COMMENTED compiles and runs?

Just starting out? Need help? Post your questions and find answers here.
maw

[PB4.2B2] /COMMENTED compiles and runs?

Post by maw »

I have to ask here first, because if this is a bug then surely someone would have found it before me?

Take the following code, or any code really:

Code: Select all

MessageRequester("This shouldn't run..", "Should it?")
Save it as test.pb and compile it with pbcompiler test.pb /COMMENTED, it then compiles it, creates purebasic.asm and purebasic.exe and runs purebasic.exe.. I would have thought that with /COMMENTED it would simply create purebasic.asm and not even compile it, and surely not run it?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

That's what I would have thought as well, but they said it was supposed to be like that.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Add the /EXE switch and nominate an executable file to be created and it should then not automatically run the program etc.
I may look like a mule, but I'm not a complete ass.
maw

Post by maw »

Odd behaviour, but since there is a workaround I'm a happy camper! Thanks srod!! :D
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

You're welcome.

Just remember to delete the resulting exe lest you fill up your hard drive etc! :)
I may look like a mule, but I'm not a complete ass.
maw

Post by maw »

srod wrote:Just remember to delete the resulting exe lest you fill up your hard drive etc! :)
Nonsense!! The one who has the most compiled exe files when he dies wins!! :twisted:
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

:lol:

If it was the one who had the most unfinished programs lying around their hard drive, then I'd win that one by at least 20000000 miles. :wink:
I may look like a mule, but I'm not a complete ass.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

srod wrote::lol:

If it was the one who had the most unfinished programs lying around their hard drive, then I'd win that one by at least 20000000 miles. :wink:
I would give you a run for your money! :)
Dare2 cut down to size
maw

Post by maw »

Dare wrote:
srod wrote::lol:

If it was the one who had the most unfinished programs lying around their hard drive, then I'd win that one by at least 20000000 miles. :wink:
I would give you a run for your money! :)
That's because you both spend more time here on the forum then you do coding :mrgreen:
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

:lol:
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply