Linking errors after conversion from VS2003 to VS2005

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tammam

    #1

    Linking errors after conversion from VS2003 to VS2005

    Hello All,

    I had a solution composed of managed/unmanaged C++ , C# projects. It builds
    with no problem in VS2003 but after converting the solution to VS2005 i get
    many linking errors such as LNK2020 LNK2028. Below is a little bit of the
    error report.

    Error 34 error LNK2020: unresolved token (0A000029) "public: __thiscall
    std::_Container _base::_Contain er_base(void)"
    (??0_Container_ base@std@@$$FQA E@XZ) UnmanagedResipr ocateController .obj
    Error 35 error LNK2028: unresolved token (0A000023) "public: __thiscall
    std::_Container _base::_Contain er_base(void)"
    (??0_Container_ base@std@@$$FQA E@XZ) referenced in function "public:
    __thiscall std::_Tset_trai ts<class resip::MergedRe questKey,struct
    std::less<class resip::MergedRe questKey>,class std::allocator< class
    resip::MergedRe questKey>,0>::_ Tset_traits<cla ss
    resip::MergedRe questKey,struct std::less<class resip::MergedRe questKey>,class
    std::allocator< class resip::MergedRe questKey>,0>(st ruct std::less<class
    resip::MergedRe questKey>)"
    (??0?$_Tset_tra its@VMergedRequ estKey@resip@@U ?$less@VMergedR equestKey@resip @@@std@@V?$allo cator@VMergedRe questKey@resip@ @@4@$0A@@std@@$ $FQAE@U?$less@V MergedRequestKe y@resip@@@1@@Z) SipStackAccesso r.obj
    Error 36 error LNK2028: unresolved token (0A000029) "public: __thiscall
    std::_Container _base::_Contain er_base(void)"
    (??0_Container_ base@std@@$$FQA E@XZ) referenced in function "protected:
    __thiscall std::_Vector_va l<class resip::NameAddr *,class
    std::allocator< class resip::NameAddr *::_Vector_val< class resip::NameAddr
    *,class std::allocator< class resip::NameAddr *(class std::allocator< class
    resip::NameAddr *>)"
    (??0?$_Vector_v al@PAVNameAddr@ resip@@V?$alloc ator@PAVNameAdd r@resip@@@std@@ @std@@$$FIAE@V? $allocator@PAVN ameAddr@resip@@ @1@@Z) SIPDataProcessi ng.obj

    Any idea whats the possible cause of this problem. I used many ideas I found
    online but none worked.

    Your help is really appreciate

    Thanks in advance,

    Tammam
  • Vadym Stetsyak

    #2
    Re: Linking errors after conversion from VS2003 to VS2005

    Hello, Tammam!

    TI had a solution composed of managed/unmanaged C++ , C# projects. It
    Tbuilds with no problem in VS2003 but after converting the solution to
    TVS2005 i get many linking errors such as LNK2020 LNK2028. Below is a
    Tlittle bit of the error report.

    It seems that C# has nothing to do here, check settings of the linker in VC++ project properties.
    you can additionally ask on
    microsoft.publi c.dotnet.langua ges.vc

    --
    Regards, Vadym Stetsyak
    www: http://vadmyst.blogspot.com

    Comment

    Working...