Code::Blocks Forums
User forums => Help => Topic started by: thor36 on February 10, 2014, 03:22:52 pm
-
Yesterday, when I was checking out sample wxWidgets programs from internet tutorials, I created a few wxWidgets 3.0 projects in CodeBlocks 13.12. Although I had problems initially, I somehow made them to build and run successfully.
Today, none of the programs worked anymore. I found the reason for that is that all the settings for compiler / linker / etc. have been restored to default. To be precise in Project -> Build options , there are paths missing in "Linker settings" and also in "Search directories" ( Compiler, Linker, Resource compiler ).
My question is, can I restore the settings back in any way ? And also, how is it possible for this to happen ? Or prevent this from happening again in the future ? Thank you.
-
The main and only reason that has ever happened for me; is when CB Crashes instead of being shut down normally.
Therefore no idea on what to fix the problem.
You can look in the appdata folder in some cases it saves a copy of the changes before renaming the file.
(No idea if valid in this type of problem.)
FYI: Changing the search directories in the Global Compiler settings is almost always the wrong thing to do!
Changing them in the project setting is the normal thing to do.
Edit: In my case this is the folder holding "C:\Users\stahta01\AppData\Roaming\codeblocks" the default.conf that contains the Compiler Settings. Your username will be different; and the above is Windows 7 32 bit path.
Tim S.
-
Thank you for the answer Tim. File in AppData didn't help, but it's a good thing to know it is there. I suppose there was something about the pc shutdown with C::B still being open, that must've caused it,... based on your observation.
Maybe that's an idea for a fix in future versions ? It would be nice if project saved ( or autosaved ) "build options" settings as well, in case of occurrences like that.