1. 主页 > vs安装问题 > VS2005安装问题 >

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的时候关掉杀毒软件就可以了~~~~~~~~~~~~

本文由VS软件圈(vssoft.net)发布,不代表VS软件圈立场,转载联系作者并注明出处:https://vssoft.net/vsazwt/VS2005anzhuangwenti/2020/0721/726.html

联系我们

在线咨询:点击这里给我发消息

微信号:PREEE8

工作日:9:30-18:30,节假日休息