IdentifiantMot de passe
Loading...
Mot de passe oubli� ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les r�ponses en temps r�el, voter pour les messages, poser vos propres questions et recevoir la newsletter

MFC Discussion :

[MFC]probleme de link


Sujet :

MFC

Vue hybride

Message pr�c�dent Message pr�c�dent   Message suivant Message suivant
  1. #1
    Membre confirm�
    Inscrit en
    Juin 2004
    Messages
    116
    D�tails du profil
    Informations forums :
    Inscription : Juin 2004
    Messages : 116
    Par d�faut [MFC]probleme de link
    J'ai ajout� quelques classes d�velopp�es independamment � mon programme, et lorsque j'essaye de compiler, j'ai les erreur de link suivantes:


    Code : S�lectionner tout - Visualiser dans une fen�tre � part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: unsigned short const * __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::c_str(void)const " (?c_str@?$basic_string@GU?$cha
    r_traits@G@std@@V?$allocator@G@2@@std@@QBEPBGXZ) already defined in libcpmtd.lib(wlocale.obj)
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::~basic_string<unsigned short,struct std::char_traits<unsigned short>,cla
    ss std::allocator<unsigned short> >(void)" (??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ) already defined in libcpmtd.lib(wlocale.obj)
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::basic_string<unsigned short,struct std::char_traits<unsigned short>,clas
    s std::allocator<unsigned short> >(unsigned short const *,class std::allocator<unsigned short> const &)" (??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGABV?$allocator@G@1@@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Q
    BEPBDXZ) already defined in RendersetParser.obj
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: bool __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::empty(void)const " (?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE_NXZ) 
    already defined in Client.obj
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_strin
    g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in RendersetParser.obj
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *,class std::a
    llocator<char> const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z) already defined in RendersetParser.obj
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::basic_string<unsigned short,struct std::char_traits<unsigned short>,clas
    s std::allocator<unsigned short> >(class std::allocator<unsigned short> const &)" (??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV?$allocator@G@1@@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::allocator<char
    > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z) already defined in RendersetParser.obj
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(cl
    ass std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z) already defined in Client.obj
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > & __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned
     short>,class std::allocator<unsigned short> >::operator=(class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > const &)" (??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std
    @@QAEAAV01@ABV01@@Z) already defined in libcpmtd.lib(wlocale.obj)
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<c
    har,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in Client.obj
    msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::basic_string<unsigned short,struct std::char_traits<unsigned short>,clas
    s std::allocator<unsigned short> >(class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > const &)" (??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@@Z) already
     defined in libcpmtd.lib(wlocale.obj)
    MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _wcsncpy already defined in libcmtd.lib(wcsncpy.obj)
    MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _wcslen already defined in libcmtd.lib(wcslen.obj)
    LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library
    ../RENDERfarm v1.0.5.exe : fatal error LNK1169: one or more multiply defined symbols found
    Error executing link.exe.

    Qu'est ce que c'est que cette MSVCRTD.lib qui me pose tant de problemes, il ya surement une incompatibilit� entre les deux bouts de codes mais je ne vois absolument pas d'ou cela peut venir.


    Merci de votre aide

  2. #2
    r0d
    r0d est actuellement connect�
    Membre exp�riment�

    Homme Profil pro
    D�veloppeur informatique
    Inscrit en
    Ao�t 2004
    Messages
    4 295
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ain (Rh�ne Alpes)

    Informations professionnelles :
    Activit� : D�veloppeur informatique

    Informations forums :
    Inscription : Ao�t 2004
    Messages : 4 295
    Billets dans le blog
    2
    Par d�faut
    As-tu essay� le rebuild de ton projet? (a tout hasard)

  3. #3
    Membre confirm�
    Inscrit en
    Juin 2004
    Messages
    116
    D�tails du profil
    Informations forums :
    Inscription : Juin 2004
    Messages : 116
    Par d�faut
    vi ca change rien

  4. #4
    Membre confirm�
    Inscrit en
    Juin 2004
    Messages
    116
    D�tails du profil
    Informations forums :
    Inscription : Juin 2004
    Messages : 116
    Par d�faut
    j'ai essay� le /NODEFAULTLIB:MSVCRTD.lib, mais j'ai encore plus d'erreurs



  5. #5
    Membre confirm�
    Inscrit en
    Juin 2004
    Messages
    116
    D�tails du profil
    Informations forums :
    Inscription : Juin 2004
    Messages : 116
    Par d�faut
    J'y comprends vraiment rien, si je mets Use MFC in a shared DLL, les erreurs disparaissent, mais quand je mets Use MFC in a static library, elles existent....



    Quelqu'un aurait il une explication
    -------
    bouhouhou tu veux ma mort...

Discussions similaires

  1. [MFC] probleme d'affichage en mode explorer
    Par ryu20 dans le forum MFC
    R�ponses: 2
    Dernier message: 11/02/2005, 20h33
  2. [dev-cpp] probleme de link
    Par alex1er dans le forum Dev-C++
    R�ponses: 5
    Dernier message: 20/01/2005, 17h41
  3. [MFC] Probleme d'actualisation d'une listbox
    Par Robleplongeur dans le forum MFC
    R�ponses: 5
    Dernier message: 13/05/2004, 14h15
  4. [MFC ]Probleme de linkage d'une dll
    Par Lysis dans le forum MFC
    R�ponses: 9
    Dernier message: 22/01/2004, 14h51
  5. [MFC] probleme de rafraichissement d'une image
    Par Vestaproman dans le forum MFC
    R�ponses: 6
    Dernier message: 09/01/2004, 23h59

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo