Page 1 of 1

"Compiler options" ignored w/ "Create executable"

Posted: Mon Dec 07, 2009 3:32 pm
by Captn. Jinguji
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.

Re: "Compiler options" ignored w/ "Create executable"

Posted: Mon Dec 07, 2009 4:38 pm
by blueznl
I've been reading this three times and I do not understand the question, could you please rephrase it?

Re: "Compiler options" ignored w/ "Create executable"

Posted: Mon Dec 07, 2009 6:20 pm
by freak
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.

Re: "Compiler options" ignored w/ "Create executable"

Posted: Tue Dec 08, 2009 12:33 pm
by Captn. Jinguji
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... ;)