error prj0003 不能生成 cl.exe的解决方法

在编译ACE工程的时候,总是出现error prj0003错误,找了好久终于得到解决方法, :

简单的方法:先关掉VS2005

就是去Documents and Settings目录查找VCComponents_v1.dat文件,删除掉,重启VS2005即可。

URL:http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=119659

 

 


描述
Default install on machine does not compile old programs made in .NET 2003.

Does not appear to add correct paths to bin in Win32 Directory.
建议
Hello,

Can you provide us more information on this bug? Is this on Express SKU? If you create a fresh application with a wizard, does this problem reproduce? Does it work for any other converted projects? Was there any installation problem? Do you find cl.exe installed on your machine? Did you try this on the default Win32 platform?

Thank you.

-Shankar
Visual C++
Microsoft 在 2005/7/22 9:55 发送
Full Beta 2 from the CDs. Tried a fresh application and still did not find cl.exe. I looked in my directories, and for some reason there are only two listed for normal compiling. When I tried to add the base directories similar to the x64 processors (ignoring the x64-specific directories) cl.exe returns en error code.

When I default-installed, the only paths in Win32 Executables were hard-links to the SDK.

I added for trying to get cl.exe to work:
$(VCInstallDir)bin
$(VCInstallDir)PlatformSDK/bin
$(VCInstallDir)PlatformSDK/common/bin
$(VSInstallDir)Common7/Tools/bin

Now, when compiling, it finds cl.exe but returns:

Project : error PRJ0002 : Error result -1073741515 returned from 'C:/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe'.
Darsant 在 2005/7/23 9:23 发送
Can you try deleting the VCComponents.dat file from

/Local Settings/Application Data/Microsoft/VisualStudio/8.0 directory.

Restart the environment and this scenario should work.

Thanks
Sreraman
VC++ Development Team
Microsoft 在 2005/7/25 16:01 发送
Bingo that did the trick. Thanks.
Darsant 在 2005/8/1 12:51 发送
Product Language
English
Version
Visual Studio 2005 Beta 2
Category
Installation/Setup
Operating System
Windows XP Professional
Operating System Language
US English
Steps to Reproduce
Import program from .NET 2003 and attempt to compile.
cl.exe directory is not correctly set.
Actual Results
Project : error PRJ0003 : Error spawning 'cl.exe'.
Error on compile.
Expected Results
Program compiled successfully.
文件附件
0 个附件

你可能感兴趣的:(error prj0003 不能生成 cl.exe的解决方法)