473,480 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

What this message means "LNK2022: metadata operation failed" ?

MC++ application, I've got "LNK2022 error message...

MyApp error LNK2022: metadata operation failed (8013118D) : Inconsistent method declarations in duplicated types(CMainFramel). (0x02000008).

It seems to be some my struct type have a "#pragma pack (push, 1)".
Delete that #pragma keywords. Solve the LNK2022 problem.
But why? That "#pragma ..." line make the problem and what's the meaning of two value (8013118D, 0x02000008).
It seem to be varibale for appliation and code... What's is this meaning for??

Nov 17 '05 #1
2 5218
Hi,
what's the meaning of two value (8013118D, 0x02000008).


metadata operation failed (HRESULT) : error_message
The 8013118D is the HRESULT, the 0x02000008 is the RVA of the type in the
error message.
"According to the MSDN,one reason for LNK2022 is when a struct exists in
multiple modules with the same name, but with conflicting definitions, and
when you compile with /clr.

This usually happens because somehow the compiler puts slightly different
metadata in two modules for the same type. At link time, when the metadata
is merged, this error is emitted because the name for the type is the same,
but there is some descrepancy in the rest of the metadata describing that
type."

In your scenarion, it appears the problematic type has the conflict
alignment.
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #2
> 0x02000008 is the RVA of the type in the error message.

More specifically, it is the token ID of the metadata token referring to the
definition. You can use ildasm to see what type it rfers to.

Ronald Laeremans
Visual C++ team

"Gary Chang" <v-******@online.microsoft.com> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
Hi,
what's the meaning of two value (8013118D, 0x02000008).


metadata operation failed (HRESULT) : error_message
The 8013118D is the HRESULT, the 0x02000008 is the RVA of the type in the
error message.
"According to the MSDN,one reason for LNK2022 is when a struct exists in
multiple modules with the same name, but with conflicting definitions, and
when you compile with /clr.

This usually happens because somehow the compiler puts slightly different
metadata in two modules for the same type. At link time, when the metadata
is merged, this error is emitted because the name for the type is the
same,
but there is some descrepancy in the rest of the metadata describing that
type."

In your scenarion, it appears the problematic type has the conflict
alignment.
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6521
by: Gilles Arnaud | last post by:
Hello, I've got a nasty bug and no idea to deal with : here is the method : <method> def denormer(self, var) : " denorme un vecteur d'entree " try: #a = map(self.decerner, self.param, var)
3
14708
by: Giulio | last post by:
I'm studying Craig Larman's "Applying uml and Patterns" (third ed.) reading at the book it seems (16.6) that Operations and Methods in a Class diagram are something different but it's not...
2
14921
by: Ronny Sigo | last post by:
Hello all, I already put the same question, only now I have more to tell ... Although I used this code before in the same routine (only the fieldname of the table differs) ___ at this point in the...
2
14925
by: Steve M | last post by:
A few users today received the message "The trust relationship between this workstation and the primary domain failed" on their web browser while using an ASP.NET web app. The problem went away...
3
4061
by: GreggTB | last post by:
I've been working on what appears to be a cursed ASP.NET project....so many things have gone wrong that Murphy would be proud. ;-) Anyway, I shut down the project in VS.NET at one point this...
13
2338
lee123
by: lee123 | last post by:
I have a form I have been working on and now I am almost done with it but there is just one thing I need to finish it that I can figure out. Well I have a questionnaire form with 50 questions and I...
1
3301
by: hicham | last post by:
Hi; I am getting a very annoying linker error ( though the binary is generated correctly ) when compiling my code as follow: * I am compiling my code on AIX 5.3. * I compile with xlc_r...
1
3566
by: =?Utf-8?B?c3DDr3LDtg==?= | last post by:
I'm having a problem with MS outlook. Neither of my email accounts were working, so I reinstalled hoping that, that would fix the problem - unfortunatly it didn't. When I go to create a new...
0
2152
by: sa6113 | last post by:
I am using this code to connect to a windows machine using paramiko, I have installed sshd on the machine and it works properly: sock.connect((hostname, port)) t = paramiko.Transport(sock)...
0
7037
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,...
1
6730
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
6873
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...
1
4767
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4471
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.