Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: A_Unique_Unbaked_Waffle on July 21, 2015, 08:08:35 am

Title: Code::Blocks asking for compiler on each startup
Post by: A_Unique_Unbaked_Waffle on July 21, 2015, 08:08:35 am
Even after selecting a compiler and clicking "Set as default", I still get this error whenever I try to open it (even if I'm opening a project with a compiler already selected). How do I fix it?

Image of dialog box in question that pops up:
(http://i.imgur.com/ksR1hDO.png)
Title: Re: Code::Blocks asking for compiler on each startup
Post by: raynebc on July 21, 2015, 09:19:32 am
Assuming Windows, did you install Code Blocks into a protected location such as within either the 32 or 64 bit "Program Files" folders?
Title: Re: Code::Blocks asking for compiler on each startup
Post by: A_Unique_Unbaked_Waffle on July 21, 2015, 09:27:04 am
I believe it installed itself under the 32 bit program folder.

However, the problem has been fixed since I posted this. I was changing the theme of it (adding themes to the config file) and somehow it messed up my config file, resulting in me having to setup everything again. I didn't do anything different this time, but it somehow it works now. Strange, but at least it's fixed.
Title: Re: Code::Blocks asking for compiler on each startup
Post by: oBFusCATed on July 22, 2015, 06:15:30 pm
Probable cause for this problem might be: C::B crashing on exit and not saving the config file before the crash.
Title: Re: Code::Blocks asking for compiler on each startup
Post by: codester5447 on July 23, 2015, 07:02:08 pm
Hey I am on windows and I had the same issue. How did you resolve the issue --I'm new to programming and don't understand the resolution you gave--
Your help.would really be appreciated.
Title: Re: Code::Blocks asking for compiler on each startup
Post by: stahta01 on July 23, 2015, 07:08:09 pm
Hey I am on windows and I had the same issue. How did you resolve the issue --I'm new to programming and don't understand the resolution you gave--
Your help.would really be appreciated.

The normal solution I use is to create a dummy folder like C:\dummy and set the CB Compilers that I do NOT use to that.
Normally only need to set the ones that do NOT have a Compiler Installation directory value to that value.

Quote
"Settings->Compiler and Debugger->Global Compiler settings->Toolchain executables"

Tim S.