The build command:
C:\Windows\system32\cmd.exe;C:\GnuWin32\bin;C:\Program Files (x86)\CodeBlocks\MinGW\bin /c "mingw32-make.exe -j 4 -e -f Makefile"
is nonsense. It should be:
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f Makefile"
where C:\Windows\system32\cmd.exe
is the system shell. But:
C:\Windows\system32\cmd.exe;C:\GnuWin32\bin;C:\Program Files (x86)\CodeBlocks\MinGW\bin
is not even the pathname of any executable file, or even a pathname. It appears to be
a PATH
-like value invalidly prefixed with the name of the shell.
CodeLite (quite properly) obtains the shell name C:\Windows\system32\cmd.exe
from the value of the system environment variable ComSpec
.
I believe the only way this in which this mess could have occurred is that the value of ComSpec
has been trashed on the system before CodeLite runs.
Navigate Control Panel -> System and Security -> System
-> Advanced system settings -> Environment Variables and inspect ComSpec
in the System variables. Also look for ComSpec
or COMSPEC
in the User variables in case a an overriding value has been set up there. If the value is not C:\Windows\system32\cmd.exe
then correct it.