User forums > Help
can't find compiler executable in your search path (GNU GCC compiler)
srenac:
THIS really helped me. Beginner over here and this quickly fixed the problem. THANKS (:
nullne:
thanks ,though i do not know why
22990atinesh:
--- Quote from: laYahooz on January 04, 2013, 11:06:00 pm ---I had a similar problem. Please note I'm a total n00b in C++ and IDE's but heres what I did (after some research)
So of course I downloaded the version that came with the compiler and it didn't work. Heres what I did:
1) go to settings in the upper part
2) click compiler
3) choose reset to defaults.
Hopefully this works :-\
--- End quote ---
Kudos Bro Finally It worked for me too.
Uncreative:
I tried the first method suggested (restoring to defaults) and it didn't work. I think this was because there was no gnu gcc exe file. Then I tried the second method, downloading the compiler from online, and Code::Blocks did recognize the compiler, but when I tested the compiler on the default Hello World program, I got this error message:
-------------- Build: Debug in Starter project (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -g -pedantic -Wextra -Wall -c "C:\Users\ALEX\Desktop\CodeBlocks\share\CodeBlocks\images\Projects\Starter project\main.cpp" -o obj\Debug\main.o
Execution of 'mingw32-g++.exe -Wall -fexceptions -g -pedantic -Wextra -Wall -c "C:\Users\ALEX\Desktop\CodeBlocks\share\CodeBlocks\images\Projects\Starter project\main.cpp" -o obj\Debug\main.o' in 'C:\Users\ALEX\Desktop\CodeBlocks\share\CodeBlocks\images\Projects\Starter project' failed.
So, what now?
stahta01:
--- Quote from: Uncreative on July 14, 2014, 11:27:05 am ---I tried the first method suggested (restoring to defaults) and it didn't work. I think this was because there was no gnu gcc exe file. Then I tried the second method, downloading the compiler from online, and Code::Blocks did recognize the compiler, but when I tested the compiler on the default Hello World program, I got this error message:
-------------- Build: Debug in Starter project (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -g -pedantic -Wextra -Wall -c "C:\Users\ALEX\Desktop\CodeBlocks\share\CodeBlocks\images\Projects\Starter project\main.cpp" -o obj\Debug\main.o
Execution of 'mingw32-g++.exe -Wall -fexceptions -g -pedantic -Wextra -Wall -c "C:\Users\ALEX\Desktop\CodeBlocks\share\CodeBlocks\images\Projects\Starter project\main.cpp" -o obj\Debug\main.o' in 'C:\Users\ALEX\Desktop\CodeBlocks\share\CodeBlocks\images\Projects\Starter project' failed.
So, what now?
--- End quote ---
I suggest NOT using space in paths while compiling with any MinGW GCC compiler.
Some can use them some can not.
I suggest NOT using C:\Users\ALEX\Desktop because the Windows security and antivirus are more likely to think it is a virus attack.
I also suggest starting a new thread since this one has nothing to do with your current problem.
I have tried to locate the problem in another thread http://forums.codeblocks.org/index.php/topic,19453.msg132925/topicseen.html#msg132925
Please read it and if your problem is still failed you can use that thread to ask for more help.
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version