After installing Visual Studio 2008 Standard with only Visual C++, when you try to build any kind of C++ project you will receive an error message: Project : error PRJ0003 : Error spawning 'cl.exe'

Source: Microsoft Support
RAPID PUBLISHING
RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.
Action
Install Visual Studio 2008 Standard with only Visual C++ and try to build any kind of C++ project.
Result
When you try to build any kind of C++ project you will receive the following error message: Project : error PRJ0003 : Error spawning 'cl.exe'
Cause
The root cause of this issue is that cl.exe file is only included in the feature of C# (C Sharp) in vs_std sku. That means it will not get installed by only installing Visual C++.

If you search for cl.exe on the machine you will find the following occurrences:
1. "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\amd64\cl.exe"
2. "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\x86_amd64\cl.exe"

The folder "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin" does not include cl.exe.
Resolution
Install C# (C Sharp) along with Visual C++.
More Information
Repro Steps
=============================
Install Visual Studio 2008 Standard with only C++
Launch VS 2008 IDE
Create any kind of new C++ project
Build the project
You will receive the following error message:Project : error PRJ0003 : Error spawning 'cl.exe'



DISCLAIMER
MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.
Properties

Article ID: 969866 - Last Review: 04/03/2009 14:25:24 - Revision: 1.0

Microsoft Visual Studio 2008 Standard Edition

  • kbrapidpub kbnomt KB969866
Feedback