The message you received means that there's a high chance that there was a syntax problem with the command given to shell. This would be caused by having characters in the file name, which can be interpreted as doing something special. So, it looks like Emacs was trying to call C:\\Program
"program" with an argument Files\\ccl\\wx86cl.exe
.
There are several ways to address the error:
- There has to be an escaping function, something like:
(shell-quote-argument "C:\\Program Files\\ccl\\wx86cl.exe")
But since you cannot affect how the file name is passed to the function which creates the process, this isn't going to work.
You can move the program you want to call to a directory with "safe" name.
You can move the executable to be on the system path (
%PATH%
variable in Windows) - through changing environment variables and appending the directory with the executable to it.One more option is to add the directory with the executable to
exec-path
variable in Emacs. This variable holds a list of all directories looked up for programs to run, if you just call a program by name, rather then by full path. This also (at least for me) makes my.emacs
file easier to port between different systems.