News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Code::Blocks asking for compiler on each startup

Started by A_Unique_Unbaked_Waffle, July 21, 2015, 08:08:35 AM

Previous topic - Next topic

A_Unique_Unbaked_Waffle

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:

raynebc

Assuming Windows, did you install Code Blocks into a protected location such as within either the 32 or 64 bit "Program Files" folders?

A_Unique_Unbaked_Waffle

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.

oBFusCATed

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!]

codester5447

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.

stahta01

#5
Quote from: 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.

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.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]