一个开发环境遇到的问题

FIX: “CL.exe” exited with code -1073741515 & cannot run ‘rc.exe’

Hey folks,

had this nasty error after re-installing Windows 7 on my Notebook.
Installed Visual Studio 2010, wanted to build a project and obviously.. it didn’t work.

 

I actually got this error message:

1>—— Build started: Project: Win32Project2, Configuration: Debug Win32 ——
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(251,5): error MSB6006: “CL.exe” exited with code -1073741515.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Since there wasn’t any really helping solution for this online I tried reinstalling Visual Studio many times, without success. (Damn re-installing takes a lot of time)

-1073741515 = STATUS_DLL_NOT_FOUND

Running CL.exe manually ended up with an Message-box telling me there’s an DLL missing.

After a while trying around I came up with this solution:
(I was installing Visual Studio 2012 on Windows 7 64Bit)

Part 1: FIX  error MSB6006: “CL.exe” exited with code -1073741515.

Add this to your PATH environment variables:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE

Copy those files:

msobj110.dll
mspdb110.dll
mspdbcore.dll
mspdbsrv.exe

From

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE

to

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin

Congrats, you _should_ be able to build your project now..
sounds a bit naive what, right after that was fixed the next error popped up:

Part 2: FIX  LINK : fatal error LNK1158: cannot run ‘rc.exe’

Add this to your PATH environment variables:

C:\Program Files (x86)\Windows Kits\8.0\bin\x86

Copy those files:

rc.exe
rcdll.dll

From

C:\Program Files (x86)\Windows Kits\8.0\bin\x86

to

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin

原文链接:

http://i-am-bryan.com/webs/tutorials/fix-cl-exe-exited-with-code-1073741515-cannot-run-rc-exe/

 

转载于:https://www.cnblogs.com/haohaoday/p/5533822.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值