Author Topic: can't find compiler executable in your search path (GNU GCC compiler)  (Read 118161 times)

Offline Gregg

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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
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.
« Last Edit: February 26, 2014, 10:05:54 pm 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 Gregg

  • Single posting newcomer
  • *
  • Posts: 3
thank you

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: can't find compiler executable in your search path (GNU GCC compiler)
« Reply #3 on: March 01, 2014, 02:29:51 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!

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.
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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: can't find compiler executable in your search path (GNU GCC compiler)
« Reply #4 on: March 01, 2014, 06:55:22 pm »
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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: can't find compiler executable in your search path (GNU GCC compiler)
« Reply #5 on: March 01, 2014, 08:27:23 pm »
This problem is between me and another person. So that means it's not your business :) Forget about it.

I take it, you wish to be banned from this forum; you are almost achieving your goal.

Edit: You just told a member of the CB Dev team that a post on this forum is none of his business; every post is his business.

Tim S.
« Last Edit: March 01, 2014, 08:47:00 pm 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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: can't find compiler executable in your search path (GNU GCC compiler)
« Reply #6 on: March 01, 2014, 09:30:57 pm »
This problem is between me and another person. So that means it's not your business :) Forget about it.

I warn you, another post like this and you get banned.

Please think before you post, read the rules, ask smart questions with enough information or stop posting here !!!

Offline tgenao

  • Single posting newcomer
  • *
  • Posts: 2
Re: can't find compiler executable in your search path (GNU GCC compiler)
« Reply #7 on: March 10, 2014, 10:49:40 pm »
Good Afternoon,
 I have read your post and followed your steps, and I am still unable to compile.  I just downloaded the program version 13.12 and the error is "can't find compiler executable in your configured search path's for GNU GCC compiler. I am running window 8.  Any information that you can provide would be appreciated.  I have unistalled the program and re-installed it but it is still giving me the same problem.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: can't find compiler executable in your search path (GNU GCC compiler)
« Reply #8 on: March 10, 2014, 11:02:00 pm »
Good Afternoon,
 I have read your post and followed your steps, and I am still unable to compile.  I just downloaded the program version 13.12 and the error is "can't find compiler executable in your configured search path's for GNU GCC compiler. I am running window 8.  Any information that you can provide would be appreciated.  I have unistalled the program and re-installed it but it is still giving me the same problem.


Please post the path where you installed the GNU GCC compiler?

You DO REALIZE that Code::Blocks is NOT a Compiler, right?

Tim S.
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 tgenao

  • Single posting newcomer
  • *
  • Posts: 2
Re: can't find compiler executable in your search path (GNU GCC compiler)
« Reply #9 on: March 11, 2014, 12:13:43 am »
Yes I understand that. I am sorry but I don't understand what you mean by path. I went to the website and DL the IDE and did not change anything.  I simply follow the standard prompts. As you can see from my lack of knowledge I am new to this and trying to learn. I have deleted the program and re installed it, but is still not working correctly.
« Last Edit: March 11, 2014, 12:20:03 am by tgenao »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: can't find compiler executable in your search path (GNU GCC compiler)
« Reply #10 on: March 11, 2014, 01:31:57 am »
Goto Setting -> Compiler -> [your compiler] -> Toolchain executables -> Compiler installation directory
This is the directory where C::B think your compiler is installed in. Is this the case? Open it in explorer and verify that the executables are there.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: can't find compiler executable in your search path (GNU GCC compiler)
« Reply #11 on: March 11, 2014, 02:04:43 am »
NOTE: You must have a good MinGW GCC Installation on your Computer
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