Error Spawning Cl.exe Visual Studio 2003
Visual Studio Languages , Windows Desktop Development > Visual C++ Question 0 Sign in to vote After trying to be fancy and installing the Platform SDK update from the CD image (5.2.3790.1830.15.PlatformSDK_Svr2003SP1_rtm.img) for my VS.NET 2003 all hell broke loose and none error spawning cl.exe in c++ of my projects in VC++ will compile. It just gives me the error “error PRJ0003 error spawning cl exe vs2003 : Error spawning 'cl.exe'.”. I tried to fix is as the KB say by repairing/reinstalling VS.NET, But it still fails. I came across a blog stating that the paths went coocoo. I tried best I can to fix that too but an error is show after compiling, something about ‘cl.exe’ returning an error. This has become a frustrating side project. How do I set VS.NET (VC++.NET) to have its default search paths and what went wrong? Friday, August 05, 2005 6:43 AM Reply | Quote Answers 5 Sign in to vote I ran into this same problem and read the multiple copies of iton theseforums, receivingnothing but a huge run-around with these supposed 'answers' given out. Since no one seems to want to answer your question, I will at least try: Question One: To reset the default paths, Open up VS and go to Tools->Import and Export Settings->Reset all Settings. You may save your old environment (I didn't), and then choose your default setup (obviously VC++ for most of us). If you use this option to refresh the paths (optimal), be sure to include the PlatformSDK's directories to be called before VC's. Go to Tools->Options->Projects and Solutions-> and here you will want to show directories for executables and add PSDK's \bin, and move it up to the top. Show directories for include and add PSDK's \include, and move it up to the top. Show directories for lib and add PSDK's \lib and move that up to the top. If you want to use the DirectX SDK, make sure to do the same thing with this (except for lib choose \lib\x86 if that meets your system type) and move DX above everything else. Question Two: The Platform SDK (and I think DirectX does) screws up your paths in its attempt to facilitate its usage. What a croc! One of the reasons it seems that cl.exe was fussing was since it could not find a file called mspdb80.dll. This file is found in the directory (yourdrive:\Microsoft Visual Studio 8\Common7\IDE). This should be included in the Executable Files area. In VS, Tools->Options->Show Directories for Executable Files->Add new line->browse to that folder/directory. Move it up so that its scanned before the rest of the junk. There
Unanswered Topics Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Beginning Visual C++ 6 Error spawning cl.exe User Name Remember Me? Password Reminder Password Register Register | FAQ | Members List | Calendar | Today's Posts | Search BOOK: Beginning Visual C++ 6 This is the forum to discuss the Wrox book Beginning Visual C++ 6 by Ivor Horton; ISBN: 9780764543883 Read more about Beginning Visual C++ 6 or buy the book from your favorite retailer Download the code for Beginning Visual C++ 6 Search Forums Show Threads Show Posts Advanced Search Find All Thanked Posts Go to Page... Welcome to the p2p.wrox.com Forums. You are currently viewing the BOOK: Beginning Visual C++ 6 section of the Wrox Programmer to Programmer https://social.msdn.microsoft.com/Forums/vstudio/en-US/13198d7b-88d3-4ae2-8ab2-58efdbe30ba5/prj0003-error-spawning-clexe-and-resulting-error-question?forum=vcgeneral discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free . Thread Tools Display Modes #1 (permalink) February 10th, 2004, 05:11 AM TypX Registered User http://p2p.wrox.com/book-beginning-visual-c-6/9180-error-spawning-cl-exe.html Join Date: Feb 2004 Location: , , France. Posts: 1 Thanks: 0 Thanked 0 Times in 0 Posts Error spawning cl.exe Hello, When I try to compile my files, even the example files of visual C++, I receive this error message : Error spawning cl.exe What does that mean ? what can I do ? #2 (permalink) February 10th, 2004, 06:32 AM karthik79_mca Registered User Join Date: Jan 2004 Location: , , . Posts: 1 Thanks: 0 Thanked 0 Times in 0 Posts Hello, I think this is useful to you. Check your path settings under Tools->Options->Directories. Make sure the paths listed for the executable is correct for where you have vcspawn.exe and CL.exe installed to. You can also attach the
Forum Visual C++ & C++ Programming Visual C++ Programming Error Spawning "cl.exe"? If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or Login before you http://forums.codeguru.com/showthread.php?372625-Error-Spawning-quot-cl-exe-quot can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 5 of 5 Thread: Error Spawning "cl.exe"? Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode January 19th, 2006,03:31 PM #1 starfleetrp View Profile View Forum Posts Member Join Date Jun 2005 Posts 241 Error Spawning "cl.exe"? error spawning Why am I all of a sudden getting this: Error Spawning "cl.exe"? when I try to complile my exe. I have comliled many time with this and now it is just starting happening when I got on it today... I am using VS 2003 Last edited by starfleetrp; January 19th, 2006 at 03:34 PM. Reply With Quote January 19th, 2006,03:55 PM #2 MrViggy View Profile View Forum Posts Elite Member Power Poster Join Date Feb 2002 Posts 4,640 Re: error spawning cl Error Spawning "cl.exe"? Try re-installing VS? Does cl.exe exist on the drive? Can you manually run it (on the command line)? Viggy Reply With Quote January 19th, 2006,04:13 PM #3 ecspansion View Profile View Forum Posts Member Join Date Apr 2004 Location Los Angeles Posts 50 Re: Error Spawning "cl.exe"? You may need to put the path to cl.exe in your PATH environment variable. on my computer, it's in C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin go to Control Panel > System > "Advanced" tab > "Environment Variables" button > under "System Variables" find PATH > click "edit" > add the above path, preceded by a ';' You'll probably get another error or two - add the paths to those in as well. Reply With Quote January 19th, 2006,04:14 PM #4 golanshahar View Profile View Forum Posts Elite Member Power Poster Join Date May 2005 Posts 4,954 Re: Error Spawning "cl.exe"? Originally Posted by starfleetrp Why am I all of a sudden getting this: Error Spawning "cl.exe"? when I try to complile my exe. I have comliled many time with this and now it is just starting happening when I got on it today... I am using VS 2003 Error spawning 'cl.exe' and resulting error question Cheers If a post helped you dont forget to "Rate This Post" My Article: Capturing Windows Regardless of Their Z-Order Cheers Reply With Quote January 19th, 2006,06:19 PM #5 starfleetrp View P