Questions tagged [lnk2022]
5 questions
5
votes
1 answer
LNK2022: metadata operation failed : Inconsistent field declarations in duplicated types
I have problem with compiling my C++ .NET project.
I have read "LNK2022: metadata operation failed" driving me insane -- and this is not my case, because in my case i cannot compile one single project -- it fails at link time. i tried all (two)…

greenyadzer
- 51
- 1
- 3
3
votes
3 answers
Linker Error: LNK2022
I am trying to use boost threads in a project having common language runtime support. I get the following linker error. error LNK2022: metadata operation failed (8013119F) : A TypeRef exists which should, but does not, have a corresponding TypeDef:…

Aaron Berry
- 481
- 1
- 5
- 5
3
votes
1 answer
LNK 2022: Inconsistent layout information, after migrating to VS2010
I have a VS2010 solution that contains (among others), the following projects:
Native.DLL (native C++ project that statically links to a third party lib, ITK, which includes STL)
Pseudo-code (very simplified):
using namespace std;
bool…

Kohanz
- 1,510
- 16
- 35
2
votes
1 answer
Custom attributes are not consistent errors moving a VS 2008 solution to VS 2010
I'm trying to move my VS 2008 solution to VS 2010. Everything works perfectly (compile and link) if I keep the target framework at 4.0.
When I change the framework 2.0 and change the platform framework v100 (to get past compile errors) only to…

Iunknown
- 347
- 1
- 2
- 16
1
vote
1 answer
Error LNK2022 metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (ChooseDeviceParam): (0x02000273)
I recently got one .NET project to compile without further knowledge from previous developers and after fixing most errors (I am using visual studio 2017 and project's previous version was like this)
Microsoft Visual Studio Solution File, Format…

aptnutella
- 11
- 2