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

<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 发送
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 个附件
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值