资源重复错误 [英] Duplicate Resource Error

查看:98
本文介绍了资源重复错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试为以下链接器错误找到解决方案,并尝试了一些无效的解决方案。这是错误:



 1> CVTRES:致命错误CVT1100:重复资源。类型:VERSION,名称:VS_VERSION_INFO,语言:0x0409 
1> LINK:致命错误LNK1123:转换为COFF期间失败:文件无效或损坏







我意识到这告诉我我有一个重复的资源,但我似乎无法找到版本号的问题文件。我试图在链接器上启用进度,检查我的增量链接,并尝试搜索我的.rc文件.....有什么建议还有什么可以解决这个问题吗?



谢谢,



Andrew

解决方案

< blockquote>显而易见的是对VS_VERSION_INFO的所有RC文件进行文件搜索,你可能有另一个定义的文件,或者你可能有两次相同的.rc文件...



那就是说,我已经让vs2010在使用资源和源文件之前对我做了一些真的奇怪的事情,解决它的唯一方法是从文件中删除文件解决方案,然后重新添加


这个链接 [ ^ ]有一些可以帮助你的信息。


I have been trying to find a solution for the following linker error, and have tried a few solutions which have not worked. This is the error:

1>CVTRES : fatal error CVT1100: duplicate resource.  type:VERSION, name:VS_VERSION_INFO, language:0x0409
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt




I realize that this is telling me I have a duplicate resource, but I can't seem to find the problem file with the version number. I have tried to enable progress on the linker, checked my incremental linking, and tried to search my .rc files.....are there any suggestions of where else to look to overcome this?

Thanks,

Andrew

解决方案

The obvious thing is to do a file search through all your RC files for VS_VERSION_INFO, you may have another one defined, or alternatively you may have the same .rc file included twice ...

That said, I've had vs2010 do some really wierd things to me before with resource and source files, and the only way to resolve it was to remove the file from the solution, and re-add it


This link[^] has some information which may help you.


这篇关于资源重复错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆