User forums > General (but related to Code::Blocks)
codeblocks environment error
stahta01:
The file codeblocks-16.01mingw-setup.exe contains Code::Blocks and MinGW Installer.
NOTE: An installer needs to be ran after downloading it.
Tim S.
http://sourceforge.net/projects/codeblocks/files/Binaries/16.01/Windows/codeblocks-16.01mingw-setup.exe
or
http://www.fosshub.com/Code-Blocks.html/codeblocks-16.01mingw-setup.exe
John Voelkel:
Tim,
I think I have downloaded and run all the things people have said for me to do.
The message I get via pop up is " Environment error: Can't find compiler executable in your configured search path for GNU GCC compiler. What I need is info on how to correct the search path. I installed the GNU GCC compiler but need to know how to change the search path to it.
John
oBFusCATed:
Some steps
1.verify that the compiler executables run.
1a. To do so open a command promp (cmd.exe)
1b. go to the folder of your compiler (cd <somepath>)
1c. type the name of the executable mingw-gcc.exe --version
1d. if you see a version info printed then all is fine
2. fix settings
2a. open compiler settings
2b. select the proper compiler you want to edit
2c. select the toolchain tab
2d. verify the path is correct (without the bin extension as advised)
2e. verify the executable names are correct
2f. press the ok button and try to compile your project again
Plati5:
I had the same problem (at least your description fits the problem I had) but finally I solved it:
I found out that Code::blocks assumes that the C compiler is called mingw-gcc.exe but in my installation it is just called gcc.exe
Same was true for the C++ compiler: it is not mingw-g++.exe but just g++.exe
I simply renamed the files in Settings>Compiler>Toolchain executables and everything started working.
May be it's the same with your installation of mingw.
Navigation
[0] Message Index
[*] Previous page
Go to full version