User forums > Help
Cant Find Compiler Executable In Your Configured Search Path
Ahmed Gamal:
I have the same problem with Code Blocks :( , i need practical steps to solve this problem !!
stahta01:
--- Quote from: Ahmed Gamal on May 15, 2013, 12:23:08 am ---I have the same problem with Code Blocks :( , i need practical steps to solve this problem !!
--- End quote ---
Step 1: Install a Compiler
Read this it might help http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler
Step 2: Start up Code::Blocks.
Step 3: Go to "Settings->Compiler->Global Compiler settings"
Step 4: Pick the CB name for the Compiler you installed and click on "Set as Default"
(In CB, the MinGW GCC Compiler is called "GNU GCC Compiler")
TEST and see if this Fixed the problem; if NOT continue to next steps
Step 5: Click on "Reset to Defaults" this removes any custom compiler setting and tries to find Compiler in the normal places.
TEST and see if this Fixed the problem; if NOT continue to next steps
Step 6: Go to "Settings->Compiler->Global Compiler settings->Toolchain executables"
Set the correct value in "Compiler Installation Directory"
NOTE: The Compiler needs to have a bin folder under the path picked in Step 6.
TEST and see if this Fixed the problem; if NOT continue to next steps
Step 7: Set the C Compiler exe name using the "..." button.
Tim S.
Ahmed Gamal:
Ok , it works now .. thank you for your care :)
GigaGerard:
Suppose you have already installed codeblocks-12.11-setup.exe
And you don't want to deinstall it and reinstall with codeblocks-12.11mingw-setup.exe
You go to http://tdm-gcc.tdragon.net/download to add the MinGW compiler (called GNU-GCC in CodeBlocks) yourself
You can do it and it will solve this problem, but when the MinGW Installation Manager opens:
be sure not just to install the C++ but also the C compiler!!
Then CodeBlocks is satisfied as it has all the files it needs in the C:\MinGW\bin
You can check if all the files it says it needs are there in CodeBlocks:
Settings -> Compiler -> Toolchain executables
Perhaps you also need to install the mingw32-base from the MinGW Installation Manager,
I don't know, I tried that 2nd myself, the C compiler seems essential.
Also in Settings -> Compiler -> Compiler settings
I checked -std=C++11 to be able to compile the new standard.
Navigation
[0] Message Index
[*] Previous page
Go to full version