User forums > Help

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

(1/1)

anton:
I had installed C::B 2003 version to 32 bit windows7 OS. The version was for 32bit with 32bit MinGW, and build show me such a message

--- Code: ---Project/Target: "vector_word_output - Debug":
  The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
  Probably the toolchain path within the compiler options is not setup correctly?!
  Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.

Tried to run compiler executable 'C:\Program Files\CodeBlocks\MinGW/bin/mingw32-gcc.exe', but failed!

--- End code ---
and I had checked that in compiler settings this is prompted in installation path and in additional path

but i find that it want to find the mingw32-gcc.exe file , while in my folder there is
i686-w64-mingw32-gcc.exe

i had checked, that I had downloaded the right version of release
--- Code: ---codeblocks-20.03-32bit-mingw-32bit-setup.exe
--- End code ---

so i 'm in doubt just rename it to what C::B had asked?

o

Commaster:
I suspect, an installation directory should be a DIRECTORY, not a file...

Also please go to the settings page as directed in the error message and check the whole list there.

P.S. There is a "NOTE" on your screenshots, read that too.

anton:
and after file was renamed, and program restartted, rebuild ends with the error message

--- Code: ---Project/Target: "vector_word_output - Debug":
  The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
  Probably the toolchain path within the compiler options is not setup correctly?!
  Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.

Tried to run compiler executable 'C:\Program Files\CodeBlocks\MinGW/bin/mingw32-gcc.exe/bin/mingw32-gcc.exe', but failed!
Tried to run compiler executable 'C:\Program Files\CodeBlocks\MinGW/bin/mingw32-gcc.exe/mingw32-gcc.exe', but failed!

Skipping...
Nothing to be done (all items are up-to-date).


--- End code ---
it trying to find the file in this folders, while the path in compiler settings still the same, as before.

is it right, that in CB 32bit 32 mingw there are 64bitMingtw and will it work if i will download and install mingw from their original site?

takashi_85:
If you didn't notice the path to the compiler executable is formed with both "\" backslashes and "/" slashes !!, i think it's a bug in this version, as i didn't find anyway to alter this in compiler options.
"/" are used in linux and Mac not windows !.

--- Code: ---Project/Target: "vector_word_output - Debug":
  The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
  Probably the toolchain path within the compiler options is not setup correctly?!
  Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.

Tried to run compiler executable 'C:\Program Files\CodeBlocks\MinGW/bin/mingw32-gcc.exe', but failed!

--- End code ---

Navigation

[0] Message Index

Go to full version