Author Topic: Code::Blocks asking for compiler on each startup  (Read 5128 times)

Offline A_Unique_Unbaked_Waffle

  • Single posting newcomer
  • *
  • Posts: 2
Code::Blocks asking for compiler on each startup
« 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:
« Last Edit: July 21, 2015, 08:10:49 am by A_Unique_Unbaked_Waffle »

Offline raynebc

  • Almost regular
  • **
  • Posts: 217
Re: Code::Blocks asking for compiler on each startup
« Reply #1 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?

Offline A_Unique_Unbaked_Waffle

  • Single posting newcomer
  • *
  • Posts: 2
Re: Code::Blocks asking for compiler on each startup
« Reply #2 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks asking for compiler on each startup
« Reply #3 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.
(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 codester5447

  • Single posting newcomer
  • *
  • Posts: 2
Re: Code::Blocks asking for compiler on each startup
« Reply #4 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Code::Blocks asking for compiler on each startup
« Reply #5 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.

« Last Edit: July 23, 2015, 07:10:13 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org