User forums > Help
Compiler flags go blank trouble shooting work
stahta01:
Symptom: The compiler setting -> compiler flags are blank/missing.
Work around delete the file "options_gcc.xml" which is under path %APPDATA%\CodeBlocks\share\codeblocks\compilers in windows
Known ways that cause the creation of the "options_gcc.xml" file.
1. Delete an "compiler flags".
Edit: This is a long term project; because it may have already been fixed or may require several things to be done to trigger the system.
Tim S.
nenin:
My case:
1. Project, used on different PC with different compiler:
--- Code: --- <Option compiler="nixman_131_ucrt_win32_gnu_gcc_64" />
--- End code ---
was opened in C::B.
2. It proposed me to change non-existing compiler with incorrect one.
3. I choose correct.
4. I applied changes on all targets.
Everything looks fine at that moment, but options_gcc.xml was generated. When I opened C::B next time, I got empty compiler flags.
nenin:
This issue has a very poor reproducibility. In some rare cases compiler flags disappeared after "apply changes", something like 20% after next start of the C::B, and 80% cases are OK.
Miguel Gimenez:
Can you attach the created xml file? I want to check if it is empty, damaged or what...
nenin:
--- Quote from: Miguel Gimenez on January 07, 2024, 02:21:51 pm ---Can you attach the created xml file? I want to check if it is empty, damaged or what...
--- End quote ---
It is attached here:
https://forums.codeblocks.org/index.php/topic,25649.msg174606.html#msg174606
It is not empty for sure.
Navigation
[0] Message Index
[#] Next page
Go to full version