Project Build Error PRJ0003 "error spawning cl.exe"

Help!

None of my projects will start. I keep getting the same build error. I have already added the directory that houses cl.exe to the VC++ executable directory and now it gives me a dialog box that states

"These project configurations are out of date. Would you like to build them "

Upon clicking yes, it states "There were build errors, continue

Upon clicking yes, it states "Unable to start debugging. Unable to find to start program with the path of my project and the nameOfMyFile.exe. The system can not find the file specified."

Then the task list displays the error spawning cl.exe.

What shall I do Help this novice please. Thanks a million times.



Answer this question

Project Build Error PRJ0003 "error spawning cl.exe"

  • mhammingh

    Which version of Visual Studio are you using It may be that there are some conflicting settings from your previous installs but usually VS has no problems locating cl.exe. It could be another issue that's not clear though.



  • DBoldt

    Mr. Jabes thank you for your reply.

    I'm using Microsoft Visual Studio .NET 2003.


  • BW

    I have reinstalled and I don't get the build spawning error, but it still errors saying it can not find the specified file

    visual studio projects/nameOfMyFile/debug/nameOfMyFile.exe

    I have no clue about the ComSpec variable. How would I find out/fix it Thanks so much.


  • Daniel21

    Are you getting this error when you try to debug the application (F5) If so, make sure that Command (Project Properties, under Debugging) is set correctly. In other words, it should match the Output Directory (Project Properties, under General).



  • Doug Gerlach

    I've seen similar problem linked to an incorrect value of the ComSpec environment variable, maybe this could be where your problem comes from
  • donni100

    Thanks for your reply.

    Not getting that error anymore. Once I deleted vccomponent.dat and then reinstalled, I can build first and then debug without a problem. However, after my projects compile with no build errors the command prompt window will not stay open long enough for me to observe output results. Could this be a resource problem Any ideas Thanks.


  • twistedinferno

    Hi Mr. Richter Thank you for your reply.

    I deleted the VCComponents.dat file, and it regenerated. I then re-added the path to cl.exe to the directory. But I have the same problem.

    I had previously installed VS.net standard, only with VB and then needed professional edition to work with cpp. Would this have anything to do with my problem Should I delete the .dat file and then uninstall and then reinstall professionsal If so, where should I install it to I think I should also mention that when vs.net searches my computer for cl.exe it says no results but its there when I explore. If you could please offer anymore insight, I'd be very grateful. Thanks again.


  • Maorik

  • Project Build Error PRJ0003 "error spawning cl.exe"