473,407 Members | 2,598 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,407 software developers and data experts.

LNK2022 Error

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 (tagYYSTYPE): (0x02000072).

tagYYSTYPE is defined as follows :

union tagYYSTYPE {
char symbol[40];
PickMath::Oper *oper;
PickMath::OpLogical *test;
double value;
};

PickMath is a namespace and Oper and OpLogical are classes within that
namespace. Both Oper and OpLogical contain virtual functions.

Any idea what I need to do to make this work?

Mike Dennis
Divestco Inc.
Nov 17 '05 #1
1 1863
Mike,

"Mike Dennis" <md*****@divestco.com> wrote in message
news:89**************************@posting.google.c om...
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 (tagYYSTYPE): (0x02000072).

tagYYSTYPE is defined as follows :

union tagYYSTYPE {
char symbol[40];
PickMath::Oper *oper;
PickMath::OpLogical *test;
double value;
};
I have never seen this error before. But it seems that the linker fails to
merge the MSIL parts of your object files. Can you see the type
layout of the two types? (Using ildasm with /out on your .obj files)
Any idea what I need to do to make this work?

Maybe it's a managed/unmanaged mismatch? Did you try to use
__nogc/__gc explicitly on the type.

-hg
Nov 17 '05 #2

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

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):...
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: | 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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.