User forums > Using Code::Blocks
Lost compiler flags in Build options.
tigerbeard:
Interestingly I observed the same using V15.12 on Win7:
The GCC "compiler flags" and the "Linker settings" tabs are empty.
On a second PC is the same C::B version with the same default.conf file. There all is fine.
In no profile is any *.xml file.
The flags also disappeard from two compiler setting I made from copies with other gcc versions.
VC compiler flags are all OK.
I compared the profile and Installation folders on both PCs with no relevant differences. Running
V16.01 had the same result. In the default.conf I could not see any hint from where C::B is taking
the information for the flags Tab. Looking through this post and searching the forum I found no
other clues. I am a bit out of ideas right now...
oBFusCATed:
The flags are in xml files. The default ones are where you've installed cb and the modified ones are in some subfolder of the folder where the default.conf file is (most probably %APPDATA%/codeblocks/...).
tigerbeard:
Great, thanks!
I found the default XMLs. it helped to better understand how the sytem works.
Also I found in one of the profile subfolders of the profile the mentioned XML file.
It was in <proflile>Codeblocks/shared/codeblocks/compiler/*.xml.
After deleting that file the Flags were back. Stupid me that this did not show up in my Diff... :-[
MortenMacFly:
--- Quote from: tigerbeard on March 27, 2016, 09:31:54 pm ---After deleting that file the Flags were back. Stupid me that this did not show up in my Diff... :-[
--- End quote ---
Please use C::B to edit these files through the compiler settings (right click in the settings dialog on an option).
We don't guarantee that it works if you do it by hand. If you do so, you are on your own and might crash C::B.
gd_on:
--- Quote ---Please use C::B to edit these files through the compiler settings (right click in the settings dialog on an option).
--- End quote ---
The problem described by "tigerbeard" or "sagaceil" is different. The compiler setting window is empty, so no way to select something.
I had also this problem on gcc compiler, but not on other compilers, and only on one PC, not on others.
As described by oBFuscated, I had an other option_gcc.xml file in my profile (in ... AppData\Roaming\CodeBlocks\share\codeblocks\compilers : I'm on Windows 7). The content of that file was very different of the normal one in my Program Files folder. Certainly generating a conflict and I don't know how the modified file was created (I never edited that xml file manually).
A solution is effectively to delete this modified file and the gcc option window appears again normally.
gd_on
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version