User forums > Help
compiler problem : no such file or directory
stahta01:
Did you verify that you have a Compiler installed on your Computers?
Tim S.
amiraghazadeh:
in installation process codeblocks only detected one compiler which was installed by itself. I have also some other compilers such as visual c++ 2005 but it could not find it. as a result, I continued installation process only by one compiler.
stahta01:
--- Code: ---mingw32-gcc.exe: error: CreateProcess: No such file or directory
--- End code ---
--- Quote from: BlueHazzard on April 15, 2016, 11:00:54 pm ---(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...)
--- End quote ---
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.
--- Code: ---"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...
--- End code ---
Tim S.
BlueHazzard:
--- Quote from: stahta01 on April 16, 2016, 09:32:58 am ---
--- Code: ---mingw32-gcc.exe: error: CreateProcess: No such file or directory
--- End code ---
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.
--- Code: ---"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...
--- End code ---
--- End quote ---
So this is a compiler internal error? probably Mingw could not find, execute something?
--- Quote from: amiraghazadeh on April 16, 2016, 12:11:37 am ---.
3- about antivirus. I tried to install codebblocks without antivirus but I did not get better result.
--- End quote ---
Not only deactivate during setup, but also during the use of codeblocks, or the start of compilation.
--- Quote ---2- d:\program files (x86)\Codeblocks\MinGW is my installation path. I also changed my installation path to d:\program files (x86)\Codeblocks\MinGW\bin but codeblocks did not work again
--- End quote ---
Why do you have a d: in front of your path?
Can you check if your installation path of mingw is in the PATH environment variable of your os?
http://www.computerhope.com/issues/ch000549.htm
--- Quote from: amiraghazadeh on April 16, 2016, 12:11:37 am ---4- in addition, I installed codeblocks on windows xp but I got the same result.
--- End quote ---
Are there some similarities with your main system (for ex. same anti virus software or also does not use the c: drive ecc.)
As you can see your error is not something common, so it would be nice if you can report back what solved your issue, so you can help us and others
greetings
amiraghazadeh:
today I found something interesting.
I used to installed CB on two other computers. one with windows 7 but other with windows 8. I used the same source which I used for m computer.
I got proper result and two PC were able to run CB correctly. however, it does not work on my pc. It makes me crazy. :o :o :o :o
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version