Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: pabristow on June 12, 2020, 11:14:09 am
-
I have several versions of GCC (and Clang), adding new ones as they are released.
When I start a project, the oldest GCC version is the default.
How can I change my configuration so that the latest one is the first option?
(I generate lots of tiny test projects so choosing the newest each time becomes tiresome).
I am willing (foolish enough? ;D) to edit default.conf if necessary but can't see where the default is set.
<DEFAULT_COMPILER>
<str>
<![CDATA[gcc]]>
</str>
</DEFAULT_COMPILER>
looks promising, but doesn't specify a GCC version like <![CDATA[GNU GCC 9.3.1]]>
Is the *order* of GCC versions significant?
Thanks for any clues...
-
In Settings -> Compiler you have a button labeled "Set as default", select the latest compiler and make it default.
-
I don't think that this does what I want
It carries an ominous second warning "Do you really want to reset defaults."
I don't want to reset - I want to SET the default compiler. And keep all its current settings.
Please can someone confirm that this is really what I want to do.
-
You must use the "Set as default" button at the left side, not the "Reset defaults" at the right.
-
"You must use the "Set as default" button at the left side "
Correct ::)
Why didn't I spot that? Need new specs? ;D (Feeble Excuse - it was greyed out (referring to an obselete compiler).)
Thanks
And thanks too to the extra warning on the Reset defaults button, because you probably really don't want to do that!