Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All!

I'm currently porting GUI code from MSVS 2005 to MSVS 2012. In a project (that depends on previous ones, .NET too and native C++ compiled with Intel C++ 13.0), I got the following error message:

MyFile.obj : error LNK2022: metadata operation failed (801311E4) : Duplicate managed types have different visibilities.

How to solve this problem? I found nothing about this specific bug. Maybe it is new on MSVS 2012. I must say that it compiled perfectly on MSVS 2005 (and also on MSVS 2010) before.

This question is a repetition of a question asked here[^]

LNK2022 seems to give a headache to many people...

Thanks in advance for your help!

Dominique
Posted
Comments
Sergey Alexandrovich Kryukov 1-Oct-12 12:33pm    
To start with, you could make a code sample designed to reproduce just this problem and nothing else. Could you do it?
--SA

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