Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
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
Posted

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
 
Share this answer
 
Comments
Albert Holguin 18-Jun-11 12:25pm    
I'd suggest the search as well... my 5
AndrewG1231 18-Jun-11 16:17pm    
I tried the file search and reloaded the file that was causing the problem, it seemed that I had a .rc2 file that was added and not part of the original files (it was a converted program from an earlier framework). Now I get an external symbol linking error, the two wouldn't be related...would they?
Member 11345027 28-Dec-20 7:43am    
Deleting and re-adding worked! Thanks
This link[^] has some information which may help you.
 
Share this answer
 
Comments
Albert Holguin 18-Jun-11 12:25pm    
possible solution... my 5
AndrewG1231 18-Jun-11 16:18pm    
Thanks, but I'm not really sure how to specify a type library...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900