User forums > General (but related to Code::Blocks)

View all compiler commands

<< < (3/5) > >>

tiwag:

--- Quote from: Priit on August 04, 2005, 08:42:44 am ---
--- Quote from: rickg22 on August 03, 2005, 11:01:49 pm ---Hmmm.... so it's not just a display thing, you want to edit ALL the compiler flags manually.

--- End quote ---
yes.
I want them to be linked with compiler flags tab. When i change something in one tab(compiler flags for example), then i see flags changed immediately in Other options tab and vice versa.

--- End quote ---
That's a good idea, i second that- in the past i also wished to have at least a window what shows me the actually selected compiler & linker options


--- Quote from: rickg22 on August 03, 2005, 11:01:49 pm ---Well um, there IS such an option. It's called "other options". Options are one per line (I think... I never asked Yiannis how that one works).

--- End quote ---
unfortunately it is NOT exactly this,
because "Other-options" shows only options which are not covered by the already implemented options from the "Compiler flags" checkbox-list
as the name says exactly it shows - OTHER OPTIONS !
- and you are right, options are one by line

general comment:
the bad thing is - if you put an entry of an already implemented option manually in the "Other-options" list, it will be thrown away !!!
 - this behaviour should really be improved i think.
a simple improvement would be to write the actually used commandline-switch into the "Compiler flags" checkbox-list text-description.

thomas:

--- Quote from: tiwag on August 04, 2005, 09:26:05 am ---general comment:
the bad thing is - if you put an entry of an already implemented option manually in the "Other-options" list, it will be thrown away !!!
--- End quote ---
Hmm... they're not precisely thrown away. What is done is that redundant entries are listed exactly once, which I think is pretty cool actually.

EDIT:
Getting back to the original question, this kind of "box" will probably be rather hard to implement. It is possible, without any doubt, but maybe the amount of work does not correlate to the benefit in this case?

What Priit asked for, if I am not mistaken, is a textedit field which receives events from the ckecklistbox and inserts text fragments accordingly, however still generates no redundant entries, and, at the same time parses input as you type, and sends events back to the checklistbox. That is already quite a lot to deal with to only support one compiler. Note that code::blocks can handle any number of compilers, so things get a lot more complicated (or must be farther abstracted).

tiwag:

--- Quote from: thomas on August 04, 2005, 09:43:05 am ---
--- Quote from: tiwag on August 04, 2005, 09:26:05 am ---general comment:
the bad thing is - if you put an entry of an already implemented option manually in the "Other-options" list, it will be thrown away !!!
--- End quote ---
Hmm... they're not precisely thrown away. What is done is that redundant entries are listed exactly once, which I think is pretty cool actually.

--- End quote ---

That's what i've done in the past (before CB RC1) too, i wrote all options to the "Other options" list and they got saved to the *.cbp and
parsed and shown in the "Compiler Flags" checkbox-list afterwards.

That behaviour seems to be changed in the latest CB-cvs HEAD version - now they are thrown away as i described it.

@thomas
have you tried it with the latest RC1 ?

thomas:
RC1, yes.

On first compile, the options are set twice, and on saving the project, only the checklistbox stays activated, the redundant one is eleminated.

tiwag:

--- Quote from: thomas on August 04, 2005, 10:09:42 am ---RC1, yes.

On first compile, the options are set twice, and on saving the project, only the checklistbox stays activated, the redundant one is eleminated.

--- End quote ---

try the following:
1) create a new console application project using gcc and compile it.

2) then save, close and reopen the project,

3) add optimizing switches

--- Code: ----Os
-O1
--- End code ---

to "Other options"

4) and save, close and reopen the project,

5) Do you find the optimizing switches anywhere ?

here by me they are thrown away,
the only possibility to set them is with the "Compiler Flags" checkbox-list.

thanks

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version