Lnk2022

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • orit1018
    New Member
    • Dec 2007
    • 1

    Lnk2022

    I have a solution with c++projects (static libraries and dll).
    I added \clr to the dll project because I need to add c++\cli interface.
    In one of my static libraries I have a nested class (ServerConf::Pa ckageRep).

    I keep getting the following linkage error: "error LNK2022: metadata operation failed (8013119F) : A TypeRef exists which should, but does not, have a corresponding TypeDef: (PackageRep): (0x0100001e)".

    I ran the ildasm tool on one of the obj file and I saw that following:
    // Token: 0x0100001a
    // ResolutionScope : 0x01000019
    // TypeRefName: PackageRep

    Any idea?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by orit1018
    I have a solution with c++projects (static libraries and dll).
    I added \clr to the dll project because I need to add c++\cli interface.
    In one of my static libraries I have a nested class (ServerConf::Pa ckageRep).

    I keep getting the following linkage error: "error LNK2022: metadata operation failed (8013119F) : A TypeRef exists which should, but does not, have a corresponding TypeDef: (PackageRep): (0x0100001e)".

    I ran the ildasm tool on one of the obj file and I saw that following:
    // Token: 0x0100001a
    // ResolutionScope : 0x01000019
    // TypeRefName: PackageRep

    Any idea?
    I've moved your question to the C++ Forum.
    You should get more help here :)

    -Frinny

    Comment

    Working...