none
Migration VC6 vers visual studio 2008 problème linking RRS feed

  • Question

  • Bonjour,

    Je suis sur un projet de migration vc6 vers vs2008 et j'ai eu beaucoup d'erreur lors du linking,
    est ce que quelqu'un peut m'aider ou m'aiguiller sur le problème ?
    ci-dessous les types d'erreurs que je reçois, le projet fonctionne très bien sous vc6!

    je vous remercie d'avance!



     Creating library .\Debug/myappli.lib and object .\Debug/myappli.exp
    3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ) referenced in function "public: enum ErrSecu __thiscall CSecurisation::CheckCertificat(char *,char *)" (?CheckCertificat@CSecurisation@@QAE?AW4ErrSecu@@PAD0@Z)
    3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ)
    3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(class CString const &)" (??0CString@@QAE@ABV0@@Z) referenced in function "public: enum ErrSecu __thiscall CSecurisation::CheckCertificat(char *,char *)" (?CheckCertificat@CSecurisation@@QAE?AW4ErrSecu@@PAD0@Z)
    3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(class CString const &)" (??0CString@@QAE@ABV0@@Z)
    3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "public: void __cdecl CString::Format(char const *,...)" (?Format@CString@@QAAXPBDZZ) referenced in function "public: enum ErrSecu __thiscall CSecurisation::CheckCertificat(char *,char *)" (?CheckCertificat@CSecurisation@@QAE?AW4ErrSecu@@PAD0@Z)
    3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: void __cdecl CString::Format(char const *,...)" (?Format@CString@@QAAXPBDZZ)
    3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(void)" (??0CString@@QAE@XZ) referenced in function "public: enum ErrSecu __thiscall CSecurisation::CheckCertificat(char *,char *)" (?CheckCertificat@CSecurisation@@QAE?AW4ErrSecu@@PAD0@Z)
    3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(void)" (??0CString@@QAE@XZ)
    3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "public: __thiscall CString::CString(char const *)" (??0CString@@QAE@PBD@Z) referenced in function "public: enum ErrSecu __thiscall CSecurisation::CheckCertificat(char *,char *)" (?CheckCertificat@CSecurisation@@QAE?AW4ErrSecu@@PAD0@Z)
    3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: __thiscall CString::CString(char const *)" (??0CString@@QAE@PBD@Z)
    3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "class CString __stdcall operator+(class CString const &,class CString const &)" (??H@YG?AVCString@@ABV0@0@Z) referenced in function "public: enum ErrSecu __thiscall CSecurisation::CreateCertificatApplicationForm(char const *,char const *,enum SProfil,enum ETypePoste)" (?CreateCertificatApplicationForm@CSecurisation@@QAE?AW4ErrSecu@@PBD0W4SProfil@@W4ETypePoste@@@Z)
    3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "public: class CString const & __thiscall CString::operator=(class CString const &)" (??4CString@@QAEABV0@ABV0@@Z) referenced in function "public: enum ErrSecu __thiscall CSecurisation::CreateCertificatApplicationForm(char const *,char const *,enum SProfil,enum ETypePoste)" (?CreateCertificatApplicationForm@CSecurisation@@QAE?AW4ErrSecu@@PBD0W4SProfil@@W4ETypePoste@@@Z)
    3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "class CString __stdcall operator+(class CString const &,char const *)" (??H@YG?AVCString@@ABV0@PBD@Z) referenced in function "public: enum ErrSecu __thiscall CSecurisation::CreateCertificatApplicationForm(char const *,char const *,enum SProfil,enum ETypePoste)" (?CreateCertificatApplicationForm@CSecurisation@@QAE?AW4ErrSecu@@PBD0W4SProfil@@W4ETypePoste@@@Z)
    3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "public: __thiscall CString::operator char const *(void)const " (??BCString@@QBEPBDXZ) referenced in function "private: int __thiscall CSecurisation::GetDiamuxLogin(void)" (?GetDiamuxLogin@CSecurisation@@AAEHXZ)
    3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: __thiscall CString::operator char const *(void)const " (??BCString@@QBEPBDXZ)
    3>Security.lib(Securisation.obj) : error LNK2019: unresolved external symbol "public: void __thiscall CString::MakeLower(void)" (?MakeLower@CString@@QAEXXZ) referenced in function "private: int __thiscall CSecurisation::GetDiamuxLogin(void)" (?GetDiamuxLogin@CSecurisation@@AAEHXZ)
    3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: void __thiscall CString::MakeLower(void)" (?MakeLower@CString@@QAEXXZ)
    3>Security.lib(GenerationLicence.obj) : error LNK2019: unresolved external symbol "public: long __thiscall CTimeSpan::GetTotalSeconds(void)const " (?GetTotalSeconds@CTimeSpan@@QBEJXZ) referenced in function "public: int __thiscall CGenerationLicence::CheckLicence(void)" (?CheckLicence@CGenerationLicence@@QAEHXZ)
    3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: long __thiscall CTimeSpan::GetTotalSeconds(void)const " (?GetTotalSeconds@CTimeSpan@@QBEJXZ)
    3>Security.lib(RegisterDate.obj) : error LNK2001: unresolved external symbol "public: long __thiscall CTimeSpan::GetTotalSeconds(void)const " (?GetTotalSeconds@CTimeSpan@@QBEJXZ)
    3>Security.lib(GenerationLicence.obj) : error LNK2019: unresolved external symbol "public: class CTimeSpan const & __thiscall CTimeSpan::operator=(class CTimeSpan const &)" (??4CTimeSpan@@QAEABV0@ABV0@@Z) referenced in function "public: int __thiscall CGenerationLicence::CheckLicence(void)" (?CheckLicence@CGenerationLicence@@QAEHXZ)
    3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: class CTimeSpan const & __thiscall CTimeSpan::operator=(class CTimeSpan const &)" (??4CTimeSpan@@QAEABV0@ABV0@@Z)
    3>Security.lib(RegisterDate.obj) : error LNK2001: unresolved external symbol "public: class CTimeSpan const & __thiscall CTimeSpan::operator=(class CTimeSpan const &)" (??4CTimeSpan@@QAEABV0@ABV0@@Z)
    3>Security.lib(GenerationLicence.obj) : error LNK2019: unresolved external symbol "public: class CTimeSpan __thiscall CTime::operator-(class CTime)const " (??GCTime@@QBE?AVCTimeSpan@@V0@@Z) referenced in function "public: int __thiscall CGenerationLicence::CheckLicence(void)" (?CheckLicence@CGenerationLicence@@QAEHXZ)
    3>Security.lib(GenerationCertificat.obj) : error LNK2001: unresolved external symbol "public: class CTimeSpan __thiscall CTime::operator-(class CTime)const " (??GCTime@@QBE?AVCTimeSpan@@V0@@Z)
    
    jeudi 31 décembre 2009 15:34

Réponses

  • Bonjour,

    Il faut recompiler Security.lib, car l’implémentation de CString a changé entre VC6.0 et les versions ultérieures.

    Cordialement,

    Alex


    Alex Petrescu - MSFT
    • Marqué comme réponse Alex Petrescu jeudi 7 janvier 2010 11:38
    mardi 5 janvier 2010 07:59

Toutes les réponses