FIX: Error LNK2022: Metadata Operation Failed (8013118D) (324088)
The information in this article applies to:
- Microsoft Visual C++ .NET (2002)
This article was previously published under Q324088 SYMPTOMS When you declare anonymous structures globally and then
compile the structures as managed code, you may receive the following (or
similar) linker error messages: error LNK2022: metadata
operation failed (8013118D) : Inconsistent layout information in duplicated
types ($ArrayType$0x1078d980): (0x02000002). LINK : fatal error LNK1255:
link failed because of metadata errors CAUSE This behavior occurs because the compiler generated
incorrect metadata for these anonymous structures. RESOLUTION To resolve this problem, add unique identifiers when you
use Managed Extensions for C++ so that you avoid using anonymous structures as
global variables. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
This bug was corrected in Microsoft Visual C++ .NET (2003).
Modification Type: | Major | Last Reviewed: | 4/11/2003 |
---|
Keywords: | kbfix kbbug kbCompiler kberrmsg kbpending KB324088 |
---|
|