It is currently Tue Apr 07, 2020 8:21 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: "Compiler options" ignored w/ "Create executable"
PostPosted: Mon Dec 07, 2009 3:32 pm 
Offline
User
User

Joined: Sun Oct 24, 2004 9:25 am
Posts: 80
Somewhat unexpectedly (for me), a main source file name entered under "Compiler Options" in an included file
seems to get ignored when "Create executable" is selected, just the included source is being compiled to a not-so-useful exe.

When compile/run is issued from the IDE, the main file is being taken into account.

I could well understand that the main file usually will not be heeded when compile-to-exe of the included file was issued from the command line interface, but the ide has all that it needs to know to perform an "all-inclusive compile", no ?

Could the behaviour observed be a feature, and if so, what good is it ?

I am using 4.40p.

_________________
Is this an artifact or should it be disposed of ?


Top
 Profile  
Reply with quote  
 Post subject: Re: "Compiler options" ignored w/ "Create executable"
PostPosted: Mon Dec 07, 2009 4:38 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6073
I've been reading this three times and I do not understand the question, could you please rephrase it?

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X 32GB RAM Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject: Re: "Compiler options" ignored w/ "Create executable"
PostPosted: Mon Dec 07, 2009 6:20 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5797
Location: Germany
This is by design. The mainfile option is intended to be used while you work on the code (and compile/run often). Since the "Create Executable" is used less frequently the option does not apply there.

Btw, its better to create a project now instead of using this option.

_________________
quidquid Latine dictum sit altum videtur


Top
 Profile  
Reply with quote  
 Post subject: Re: "Compiler options" ignored w/ "Create executable"
PostPosted: Tue Dec 08, 2009 12:33 pm 
Offline
User
User

Joined: Sun Oct 24, 2004 9:25 am
Posts: 80
Ah ok, thanks, for clearing that up, Freak.

It indeed used to be a useful option, and I used it on a bunch of sourcefiles created with 4.31,
thus, there was no project there for them, and the help file is a bit - may I say : - vague on the
fact, that it is confined to IDE compile/run.

Given that projects now are included in the IDE, I think this solves the "problem".

It was just irritating to have set the option on an include which actually compiles fine to an exe,
which, then actually did "nothing" when it was executed ;)

BTW: Thanks to Bluenzl also for trying... ;)

_________________
Is this an artifact or should it be disposed of ?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye