现在的位置: 首页 > 综合 > 正文

VS2005 编译Release版本出现清单文件的错误

2013年03月19日 ⁄ 综合 ⁄ 共 727字 ⁄ 字号 评论关闭

VS2005 编译Release版本出现清单文件的错误

from

http://hi.baidu.com/%B2%A4%B2%CB%B1%F9%B1%F9/blog/item/413473df49605118632798d5.html

 

错误为:

mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\Release\jiaoshi.exe". f 
 

解决办法,那就是在项目属性——配置属性——链接器——清单文件中, 把生成清单改成否就行了。

在项目属性——配置属性——清单工具——输入和输出中,把嵌入清单改成否也行。

 

最终原因已查明

由于VC需要把生成的文件中嵌入MANIFEST文件,而由于杀毒软件之类的会握有这个文件句柄(因为杀毒软件

发现这个EXE,DLL正在读写),于是VC就写不进去了,方法是暂时关闭杀毒软件,这样就不用

改写MANIFECT

我用的是瑞星杀毒软件,有这个问题.
Hi,

This might be due to antivirus holding open handle on the exe generated and thus when VS tries to embed the manifest it fails with access
denied. 

Is Antivirus running on your machine? Does this repro with Antivirus turned off?

If above is not the case can you provide us with a repro.

Thanks,

VC++ Team 

 

所以,编译Release的时候关掉杀毒软件就可以了~~~~~~~~~~~~

抱歉!评论已关闭.