473,395 Members | 1,452 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,395 software developers and data experts.

error LNK2022: metadata operation failed

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 and I got errors at the link as shown
below. If anyone could help me to get that thing compiled, he's welcome
:-)))

Thanks,

Laurent
MSVCMRT.lib(mstartup.obj) : error LNK2022: metadata operation failed
(8013118D) : Inconsistent layout information in duplicated types
(tagTEXTMETRICA): (0x02000039).
MSVCMRT.lib(managdeh.obj) : error LNK2022: metadata operation failed
(8013118D) : Inconsistent layout information in duplicated types
(tagTEXTMETRICA): (0x02000029).
MSVCMRT.lib(mehvecdtr.obj) : error LNK2022: metadata operation failed
(8013118D) : Inconsistent layout information in duplicated types
(tagTEXTMETRICA): (0x0200002a).
MSVCMRT.lib(msilexit.obj) : error LNK2022: metadata operation failed
(8013118D) : Inconsistent layout information in duplicated types
(tagTEXTMETRICA): (0x0200002c).
MSVCMRT.lib(puremsilcode.obj) : error LNK2022: metadata operation failed
(8013118D) : Inconsistent layout information in duplicated types
(tagTEXTMETRICA): (0x02000029).
Dec 16 '05 #1
1 11939
"Laurent Lequenne" <ll*******@hotmail.com> wrote
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 and I got errors at the link as
shown
below. If anyone could help me to get that thing compiled, he's welcome
:-)))

Someone else run into the issue before. You might want to read through
this thread:

news://news.microsoft.com/2B********...@microsoft.com

or

http://groups.google.de/group/micros...5951e0c5fd06f0

Anyway, it's like a packing mismatch. You should not use the /Zp or pragma
pack unless
you absolutely have to.

That being said, I consider that an issue with the Microsoft tool chain,
too. There are
many structures that add additional members when new versions of the product
add
features. The API typically has the appropriate safe guards and the linker
shouldn't
choke on it.

-hg
Dec 19 '05 #2

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

Similar topics

10
by: Gary Hughes | last post by:
I'm getting the following error when attempting to link a managed C++ dll. I can't find any reference to these errors with google. Can anyone help? I've included the class definition causing the...
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: jlea | last post by:
I'm getting the following link error in my C++/.NET C++ project: error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (tagTOOLINFOA):...
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: | last post by:
Hi, I am using VS2003 .NET. I have a union in my files which is generated by YACC. I am getting the following errors while linking using link.exe(Microsoft (R) Incremental Linker Version...
0
by: AntonB | last post by:
I am using Visual Studio 2005 Beta1 and get the following errors when building a .NET class library (called TryDLLPr in the example below). Any advice on what's wrong will be greatly appreciated. ...
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;
1
by: Rick | last post by:
Error 42 error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (mvl_net_info): (0x02000097). MVL_SERV.obj Hi guys, im migrating from VC 6.0 to...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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.