VS2005 Error 2022

R

Rick

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 VS2005, my app actually works under
vs2005 but just as native code (no CLR support). I'm trying to add CLR
components and i got the linker error when built, i saw the error at msdn
description and it should be that a struct whit the name mvl_net_info is
declared or defined more than once, but i cant find it, in all my code i
just have one definition and one declaration.

what other cause can give this behaviour?? or how can i solve this?

Regards.
 
C

Carl Daniel [VC++ MVP]

Rick said:
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 VS2005, my app actually works
under vs2005 but just as native code (no CLR support). I'm trying to
add CLR components and i got the linker error when built, i saw the
error at msdn description and it should be that a struct whit the
name mvl_net_info is declared or defined more than once, but i cant
find it, in all my code i just have one definition and one
declaration.
what other cause can give this behaviour?? or how can i solve this?

Make sure that every module that #includes the definition of mvl_net_info is
being compiled with the same compiler options. You can end up with multiple
definitions if, for example, you used #pragma pack and ended up with
different packing settings in two (or more) places that include the
definition of your struct.

-cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top