User forums > Using Code::Blocks

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

(1/1)

MasterBeavis:
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).

--- End code ---
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.

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?
--- End quote ---
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!
--- End quote ---

Steffen

Navigation

[0] Message Index

Go to full version