Author Topic: The compiler's setup (GNU GCC Compiler) is invalid, but i can't find a cpu match  (Read 56913 times)

Offline MasterBeavis

  • Single posting newcomer
  • *
  • Posts: 3
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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
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.
« Last Edit: January 02, 2018, 07:50:00 am 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

Offline MasterBeavis

  • Single posting newcomer
  • *
  • Posts: 3
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?

Offline aGerman

  • Single posting newcomer
  • *
  • Posts: 9
... "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
« Last Edit: January 05, 2018, 09:52:17 am by aGerman »