News:

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

Main Menu

The compiler's setup (GNU GCC Compiler) is invalid, but i can't find a cpu match

Started by MasterBeavis, January 02, 2018, 06:36:06 AM

Previous topic - Next topic

MasterBeavis

I tried to run a test .c file, but the Build Messages pane says this:


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?

stahta01

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
Edit2: Remember to click on the Tab "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]

MasterBeavis

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?

aGerman

Quote from: MasterBeavis on January 05, 2018, 09:34:30 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 ...
QuoteIf unsure, please use codeblocks-17.12mingw-setup.exe!

Steffen