Sign in to follow this  

Cl.exe

This topic is 4299 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was trying to compile some code today, and I got the following error:
Quote:
"Error spawning cl.exe"
I can't find the file anywhere, and suspect it may have been deleted somehow! I can still run the program by telling the compiler to carry on anyway, but I obviously want to get this file back. I think there was another file with it, also called cl.something. It isn't on my latest SDK CD. Is it possible to download this file, or retrieve a previously deleted file? (My recycle bin, sadly, is empty.) :(

Share this post


Link to post
Share on other sites
cl.exe is the Microsoft Visual C/C++ Compiler / Linker. It should be on/in whatever you installed MSVC from.

The file might not actually deleted, MSVC (the IDE) may just not be able to access it. Try restarting the IDE and forcefully closing any stalled instances you might find (CTRL+ALT+DEL -> Task Manager)

For Visual Studio 8 (Express 2005), it is here in my situation:
C:\Program Files\Microsoft Visual Studio 8\VC\bin\cl.exe

VC 2003:
C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\cl.exe

You get the idea :P

Share this post


Link to post
Share on other sites
No, it definitely isn't there. I've had a look. Is the next step to reinstall VC++, or should I be able to retrieve the file from one of the VC++ CDs without going through the whole process?

Share this post


Link to post
Share on other sites
Quote:
Original post by Jesbass
No, it definitely isn't there. I've had a look. Is the next step to reinstall VC++, or should I be able to retrieve the file from one of the VC++ CDs without going through the whole process?


Well... Theres always the free VC toolkit that comes with the "professional" compiler/linker (called cl.exe)...

But the cd should be better... If you can somehow retrieve the cl.exe file without installing it.

Share this post


Link to post
Share on other sites
another reason for it not being able to spawn could be if the paths for binary files has been messed with. In the IDE go to Tools->Options->Directories and switch the combobox to Executable Files (thats what its called in VC++ 6.0 ) and inspect all the paths to see if you have one pointing to "C:\Program Files\Microsoft Visual Studio\VC98\Bin", or wherever you've installed it to.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I solved this problem before by opening my processes (ctrl+alt+del).
I then noticed that there were a couple of .tmp files along the lines of ~#####.tmp running. After closing those from the process manager, I was able to compile again without this error.

Share this post


Link to post
Share on other sites
I found the files on one of the CDs and copied/pasted them into the install folder. I no longer have this error.

Thanks for all the helpful advice! :)

Share this post


Link to post
Share on other sites

This topic is 4299 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this