User forums > Help

can't find compiler executable in your search path (GNU GCC compiler)

(1/3) > >>

Gregg:
I am a complete noob at this and I seem to get this: Environment error  can't find compiler executable in your search path (GNU GCC compiler).

I tried auto detect and my few hours of research have bin in vain.
I downloaded the code block with mingw but it dint fix anything.
I am on Windows 8

How could I fix this?thanks :D

stahta01:
The below is directions I wrote up a few months back; I believe this is the first time I posted these directions.
Was planing on doing Wiki page; but, I am just too busy/tired to try to do a Wiki page right now.

Tim S.

The compiler's setup (GNU GCC Compiler) is invalid

Hint: Goto "Settings->Compiler and debugger...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.

Version 12.11 how to fix.
NOTE: You must have a good MinGW GCC Installation on your Computer

1. "Setting" -> "Compiler..."
2. Select "GNU GCC Compiler" in "Selected Compiler" list
3. Click on "Set as Default" Optional but strongly recommend step.

First and faster way to fix issue; erases any customized settings for this Compiler.
  4. Click on "Result Defaults"

Second way to fix issue; does NOT erase any customized settings for this Compiler.
  4. Toolchain executables
  5. Click on "Auto-Detect"

Third way to manually setup MinGW GCC
  Do steps 1 thru 3 from above
  4. Select "Toolchain executables" tab
  5. Select "Program Files" tab
  5. Use "..." button to set path to the MinGW GCC Compiler folder that contains the bin sub folder.
  6. Use "..." button beside "C Compiler" to set the correct exe name
  7. Set the correct exe names for the rest of the "Program Files"

Edit: I found it hard to find this post adding search strings below:
"uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!] [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]"

Tim S.

Gregg:
thank you

stahta01:

--- Quote from: hezarfenn on March 01, 2014, 01:37:55 pm ---I am using version 13.12 of codeblocks so these issiues didn't worked. Code blocks warning me about environment error again and again. What can i do to fix it? Thank you in advance :) More power to your elbow!

--- End quote ---

Make sure you have a good and stable Compiler installation; follow the steps I gave above.

Post real information if you have a problem!!!

Tim S.

oBFusCATed:
I don't understand what other kind of answer do you expect.
The only thing that is clear from your first post is that you have some error, but what error?
Be as concrete as possible.
Don't expect people to help you if they cannot easily understand your problem.

Navigation

[0] Message Index

[#] Next page

Go to full version