User forums > Help

Weird "CreateProcess: No such file or directory" error

(1/3) > >>

PooyaM:
I installed C::B version 12.11 with the minGW from the site
Created a new console project
C language
debug+release
compiled the "main.c".
Expected to see the "Hello World!" but I got this error which is on my nerves about 6 hours!

-------------- Clean: Debug in Euler (compiler: GNU GCC Compiler)---------------

Cleaned "Euler - Debug"

-------------- Build: Debug in Euler (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall  -g     -c "C:\...\Project Files\Codes\Euler\main.c" -o obj\Debug\main.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)

Where is the problem?
 :'( :'( :'(
==>>SOLUTION:<<==
In my case, the problem resulted from a program called EGCS (Experimental/Enhanced GNU Compiler System).
I installed it as a prerequisite for PSCAD(Power Systems CAD) along with a FORTRAN Compiler.
Just remove it, and you'll be fine
(Sadly, I deleted the entire PATH environmental variable due to a mistake. So what?...I ended up installing a new Win7 but after uninstalling my Ubuntu which again due to the Boot difficulties _which resulted from uninstalling GRUB_, I again ended up messing around with fixmbr and fixboot fellas(But I've lost my Laptop DVD!)...In summary, The EGCS laughed at me for a 1/2-MONTH...)

ToApolytoXaos:
Avoid creating projects inside Program Files for many reasons. Move it to C:\ and try again. If it fails, try to reinstall your C::B and recompile your project again.

oBFusCATed:
PooyaM: You forgot to tell what compiler are you using and what OS.

ToApolytoXaos: I don't think he is using C:\program files :)

thomas:
Apart from the known issue (which is not related to Code::Blocks but to MinGW) with pathnames that contain spaces such as "Program Files", there is another issue with program prefixes and suffixes, in this case, the "mingw32" bit.

Be sure that there exists a program gcc.exe in addition to mingw32-gcc.exe (and one non-prefixed version of every single compiler executable). If it does not, make a copy. Do note that neither symbolic links nor junctions seem to work. Junctions should actually work without the program knowing, but they don't do for me, neither under Windows XP, nor Windows 7, nor Windows 8.

This is even worse with TDragon's otherwise excellent GCC distribution. This one also uses suffixes in addition to prefixes (for example -DW2) which will cause tools like windres to fail with the exact same error that you see -- and no obvious explanation for why they fail, if you don't already know the reason.

ToApolytoXaos:

--- Quote from: oBFusCATed on June 29, 2013, 10:26:15 pm ---PooyaM: You forgot to tell what compiler are you using and what OS.

ToApolytoXaos: I don't think he is using C:\program files :)

--- End quote ---


--- Quote ----------------- Build: Debug in Euler (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall  -g     -c "C:\...\Project Files\Codes\Euler\main.c" -o obj\Debug\main.o
mingw32-gcc.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)
--- End quote ---

and the above is considered what? we do know that certain windows XP cause the same issue like Windows Vista / Windows 7 with permissions. it could be something like this, i might be wrong; but, as a newbie myself i have fell into the same trap and had to deal with it for a couple of hours until i figure it out.

Navigation

[0] Message Index

[#] Next page

Go to full version