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

来源:互联网 发布:零食市场调查报告数据 编辑:程序博客网 时间:2024/06/08 11:36

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

简单的方法:先关掉VS2005

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

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

 

 

类型 错误 代码 119659 状态 关闭 (无法重现) 访问限制 公开 打开者 Darsant 障碍 否 打开日期 2005/7/20 提交语言 英语        
描述
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

<users doc and settings directory>/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 发送
SPAN.9em P{margin-top:0px;margin-bottom:0px;width:500px;position:relative;left:193px;}SPAN.9em{font:8.5pt verdana;}SPAN P FONT SPAN.DevDivLayout{float:none !important;float:left;font:bold 8.5pt Verdana;width:193px;position:relative !important;position:absolute;left:0px !important;left:197px;}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 个附件