Krieger
asked on
Error spawning cl.exe - MS VC++ 6.0
I'm getting the following error message when trying to compile a project I'm working on using Microsoft's Visual C++ 6 -> "Error spawning cl.exe". Anyone know what this is about and/or how to resolve the issue?
ASKER
Edited text of question
It sounds like VC cann't find its CL compiler or is finding the wrong one.
Look for other cl.exe's that might be in your path.
Aref you are running from the command line? If so, make sure your path includes the path set by the VCVARS.BAT batch file.
Look for other cl.exe's that might be in your path.
Aref you are running from the command line? If so, make sure your path includes the path set by the VCVARS.BAT batch file.
It's possible to create a share problem if cl.exe is locked by another process. This can happen if VC locks during linking and you have to end VC abnormally. Just a thought?
Check Options | Tools | Directories. In the dialog, make sure the Executables directory includes the VC/Bin directory. If there are more than one paths, move it to the top of search order.
ASKER
Thui,
The VC/bin directory containing cl.exe is at the top of the search order. (c:\Program Files\Microsoft Visual Studio\VC98\bin)
Perrizo,
I've rebooted recently and VC hasn't locked since.
Nietod,
I'm not on the command line, and there is only one cl.exe on my machine.
Thank's for the help. I'll keep investigating and if I figure it out on my own I'll put a comment up.
The VC/bin directory containing cl.exe is at the top of the search order. (c:\Program Files\Microsoft Visual Studio\VC98\bin)
Perrizo,
I've rebooted recently and VC hasn't locked since.
Nietod,
I'm not on the command line, and there is only one cl.exe on my machine.
Thank's for the help. I'll keep investigating and if I figure it out on my own I'll put a comment up.
ASKER
This is ridiculous. I just uninstalled and reinstalled VC 6 and I still get the same error trying to compile anything, not even a simple hello world program. I don't get it. I'm going to have to call in the big guys on this one because I'm obviously not dealing with a programming error here. Thanks to all who responded.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
cssathya, please read the question history. In the comment right above your answer he says that he reinstalled and that didn't help.
ASKER
O.K., I uninstalled and reinstalled _again_, this time deleting all the garbage folders & files that were left behind by the uninstaller before I reinstalled. Things seem to be working again, but I still don't know why it got hosed in the first place. cl.exe was in the right path and thigs seemed to be set up correctly. Oh well, thanks to all who responded.
ASKER