Author Topic: gcc compiler settings is empty  (Read 7336 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 824
gcc compiler settings is empty
« on: October 27, 2014, 03:02:41 pm »
Since a while, but I can't remember when it has started, some compiler settings are empty.
This happen also after deleting the default.conf file and/or building after cleaning.
Here, it's for gcc, but sometimes it's for gfortran, this happen for some projets, but for others it's OK. And for compilers that I don't have, the setting list appears !
As it's in the general settings of C::B, it's annoying (for a specific project, using a specific compiler, I can understand such bahaviour, if you have not access to the settings of a compiler not used for this project!)
I'm on windows 7 with svn 10014, C::B and wxwidgets compiled with tdm 4.8.1.
As it does not look systematic, I can't give a way to reproduce this.

gd_on
« Last Edit: October 27, 2014, 03:46:10 pm by gd_on »
Windows 11 64 bits (24H2), svn C::B (last version or almost!), wxWidgets 3.2.8 (tests with 3.3), Msys2 Compilers 15.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: gcc compiler settings is empty
« Reply #1 on: October 27, 2014, 03:08:52 pm »
I have the same issue: I'm using nightly build rev9958, I just create a simple console C project, and I see the compiler setting is empty. :(
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 824
Re: gcc compiler settings is empty
« Reply #2 on: November 01, 2014, 06:25:32 pm »
In the compiler window, I have clicked on "Reset default" when gcc compiler was chosen. After closing and restarting C::B, the problem seems to have disapeared and everything looks OK.
Strange  ??? ! Because, as I have previously deleted default.conf (see my previous post), I supposed that many settings were reset. Apparently, this is not totally true. Some settings are in an other file, which is now correct, but was not last time.
May be I should have deleted an other file, but I don't know which one.

Finally, this "Reset default" button did the job. :D

gd_on
Windows 11 64 bits (24H2), svn C::B (last version or almost!), wxWidgets 3.2.8 (tests with 3.3), Msys2 Compilers 15.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: gcc compiler settings is empty
« Reply #3 on: November 01, 2014, 07:28:53 pm »
Search for xml files inside the folder where your default.conf file is located. It should somewhere inside share/xxxx/compiler/...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline gd_on

  • Lives here!
  • ****
  • Posts: 824
Re: gcc compiler settings is empty
« Reply #4 on: November 01, 2014, 07:41:18 pm »
Thanks for this suggestion.
Nevetheless, in my C:\Users\Gerard_2\AppData\Roaming\CodeBlocks\share\codeblocks, there is nothing ! folder is empty now. My default.conf is effectively in C:\Users\Gerard_2\AppData\Roaming\CodeBlocks.
But may be there was something wrong in it, before this "Reset default" button. I don't know.

gd_on
Windows 11 64 bits (24H2), svn C::B (last version or almost!), wxWidgets 3.2.8 (tests with 3.3), Msys2 Compilers 15.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: gcc compiler settings is empty
« Reply #5 on: November 01, 2014, 07:58:09 pm »
The reset button has probably deleted the file/s.
Probably you've defined some new flags or edited some of the existing flags.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]