473,394 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Lnk2022

I have a solution with c++projects (static libraries and dll).
I added \clr to the dll project because I need to add c++\cli interface.
In one of my static libraries I have a nested class (ServerConf::PackageRep).

I keep getting the following linkage error: "error LNK2022: metadata operation failed (8013119F) : A TypeRef exists which should, but does not, have a corresponding TypeDef: (PackageRep): (0x0100001e)".

I ran the ildasm tool on one of the obj file and I saw that following:
// Token: 0x0100001a
// ResolutionScope: 0x01000019
// TypeRefName: PackageRep

Any idea?
Dec 31 '07 #1
1 3543
Frinavale
9,735 Expert Mod 8TB
I have a solution with c++projects (static libraries and dll).
I added \clr to the dll project because I need to add c++\cli interface.
In one of my static libraries I have a nested class (ServerConf::PackageRep).

I keep getting the following linkage error: "error LNK2022: metadata operation failed (8013119F) : A TypeRef exists which should, but does not, have a corresponding TypeDef: (PackageRep): (0x0100001e)".

I ran the ildasm tool on one of the obj file and I saw that following:
// Token: 0x0100001a
// ResolutionScope: 0x01000019
// TypeRefName: PackageRep

Any idea?
I've moved your question to the C++ Forum.
You should get more help here :)

-Frinny
Dec 31 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Raja | last post by:
This is the Linker error in Visual C++ 2003 .Net dbmanager.obj : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (CDBmanager):...
1
by: Mike Dennis | last post by:
I'm trying to compile with the /CLR option in VS.NET 2003. I get the following error : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types...
0
by: GoodDay | last post by:
In My MC++ application, I've got "LNK2022 error message.. MyApp error LNK2022: metadata operation failed (8013118D) : Inconsistent method declarations in duplicated types(CMainFramel)....
2
by: GoodDay | last post by:
MC++ application, I've got "LNK2022 error message... MyApp error LNK2022: metadata operation failed (8013118D) : Inconsistent method declarations in duplicated types(CMainFramel). (0x02000008). ...
0
by: Stu | last post by:
When linking a CLR project, I get these six linker messages: T_Calc error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c000042). T_Calc error LNK2022:...
0
by: Bill Davidson | last post by:
All: When I attempt to make a release build of my project, I receive the LNK2022 error below. However, the debug build of the same project compiles/links just fine. Any ideas? Thanks, Bill...
0
by: Gerhard Menzl | last post by:
The following Managed C++ code when built using Visual Studio .NET 2003: #include <vector> #include <vcclr.h> __gc class Tester { public: typedef gcroot<Object*> TestPtr;
8
by: consultutah | last post by:
I am trying to upgrade from VS7.1 to VS8, but whenever I link any of our MC++ DLL's, I get the following errors: Creating library \sda\Main\bin\debug\XWRAP70.lib and object...
1
by: Laurent Lequenne | last post by:
Hello There, I just converted a VS 2003 C++ Project into VS 2005. I already made some changes in my headers files, has I had compilations errors with enums declarations. Now everything compiles...
1
by: manfred | last post by:
Hi Together, I tried to build a webservice proxy using a wsdl, generated in the sun/java world. I used the .Net 2003 Version, choosing there VC++. The steps I did: 1. Visual C++ Projekte /...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.