I am running Code::Blocks version 16.01 on windows 7 SP1). The compiler I use is GCC/G++ compiler and GDB debugger from TDM-GCC version (version 4.9.2, 32 bit, SJLJ). It is the last version which is available on Code::Blocks's site.
When I installed this software on my PC, at first time that I wanted to run the simplest example which is existed (hello, world) in console application, it seemed that it was not able to build a model. I have received message as follow:
||=== Build: Debug in g (compiler: GNU GCC Compiler) ===|
CreateProcess||No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Build log:
mingw32-gcc.exe -Wall -g -c D:\Users\ART\Desktop\g\main.c -o obj\Debug\main.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I have already tried several ways which I found on internet.
I installed Code::Blocks 13.12, but still I had the same problem.
I also reset defaults because I saw that in some versions this could help members to solve their problems.
In addition, I tried to use another compiler; however, I was not able to download another compiler.
... but none of them worked.
mingw32-gcc.exe: error: CreateProcess: No such file or directory
(To devs: If this error arises there should be a more detailed error messages, like compiler in path not found, with detailed search paths or so...)
I would guess the problem is a bad Compiler Installation; but, I have never been able to find the real cause of this complaint.
The one time I had a similar issue it was caused by two MinGW installations interfering with each other. I solved my issue my deleting all the MinGW installations (Including MSys and Cygwin) from my PATH environmental variable. I would also make sure no sh.exe commands are in the system PATH. But, the OP errors is NOT exactly like my error; so, my solution might not help them at all.
Edit: If CB could NOT find the exe the error message is different unless they changed it in the last release of 16.01
If CB could NOT find the C Compiler this is what CB Displays; note: This Forum tends to auto edit this message.
"h - 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.
Skipping...
"h - 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.
Skipping...
Tim S.