Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: MasterBeavis on January 02, 2018, 06:36:06 am

Title: The compiler's setup (GNU GCC Compiler) is invalid, but i can't find a cpu match
Post by: MasterBeavis on January 02, 2018, 06:36:06 am
I tried to run a test .c file, but the Build Messages pane says this:

Code
Project/Target: "SamsFirstC - Debug":
  The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
  Probably the toolchain path within the compiler options is not setup correctly?!
  Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.

Tried to run compiler executable 'C:\MinGW/bin/mingw32-gcc.exe', but failed!

Skipping...
Nothing to be done (all items are up-to-date).
So I followed the Goto and looked at the compiler flags (see attached image), and suspected that maybe I need to select a CPU architecture tuning option that matches my computer's CPU (AMD A6-3500 APU with Radeon), but none of the CPU architecture tuning options match that.

I'm out of ideas on how to configure the compiler to run my simple hello world program. What do I need to do?
Title: Re: The compiler's setup (GNU GCC Compiler) is invalid, but i can't find a cpu match
Post by: stahta01 on January 02, 2018, 07:16:13 am
Install a Compiler, then tell Code::Blocks were you installed it.

Edit: Added link http://wiki.codeblocks.org/index.php/Installing_a_supported_compiler#Compiler-neutral_setup_steps (http://wiki.codeblocks.org/index.php/Installing_a_supported_compiler#Compiler-neutral_setup_steps)
Edit2: Remember to click on the Tab "Toolchain executables"

Tim S.
Title: Re: The compiler's setup (GNU GCC Compiler) is invalid, but i can't find a cpu match
Post by: MasterBeavis on January 05, 2018, 09:34:30 am
You're telling me that the "codeblocks-17.12-setup.exe" download here:

http://codeblocks.org/downloads/26

Doesn't even come with a compiler? Where am I supposed to get a compiler then?
Title: Re: The compiler's setup (GNU GCC Compiler) is invalid, but i can't find a cpu match
Post by: aGerman on January 05, 2018, 09:50:18 am
... "codeblocks-17.12-setup.exe" ... Doesn't even come with a compiler?
That's correct. C::B is an IDE. Just read which of the downloads contain a compiler (mingw).
And ...
Quote
If unsure, please use codeblocks-17.12mingw-setup.exe!

Steffen