Partage
  • Partager sur Facebook
  • Partager sur Twitter

Problème lors du linking

Sujet résolu
    5 mars 2008 à 11:12:42

    Salut,

    Je suis en train de coder un programme qui nécessite l'utilisation de la NTL (ici). Je l'ai compilée avec VS2008 sans options particulière.
    Mais quand je compile un programme l'utilisant j'ai ceci:
    1>------ Build started: Project: Programme Crypto, Configuration: Release Win32 ------
    1>Linking...
    1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: _abort already defined in LIBCMT.lib(abort.obj)
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: _free already defined in LIBCMT.lib(free.obj)
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: _malloc already defined in LIBCMT.lib(malloc.obj)
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: ___iob_func already defined in LIBCMT.lib(_file.obj)
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: _fflush already defined in LIBCMT.lib(fflush.obj)
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: _realloc already defined in LIBCMT.lib(realloc.obj)
    1>MSVCRT.lib(MSVCR90.dll) : error LNK2005: _isspace already defined in LIBCMT.lib(_ctype.obj)
    1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
    1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)


    Ca me bloque, je ne peux rien faire d'autre sans corriger ça :(
    Si vous avez une piste...
    Merci.
    • Partager sur Facebook
    • Partager sur Twitter
      5 mars 2008 à 11:21:46

      As tu installé la SP2 de VS2008 ?
      • Partager sur Facebook
      • Partager sur Twitter
        5 mars 2008 à 11:30:54

        Euh je vois pas de quoi tu parles: SP2 pour VS2008?
        EDIT: la lib' était compilé d'une manière différente du programme, d'où ces erreurs
        • Partager sur Facebook
        • Partager sur Twitter
          5 mars 2008 à 13:29:08

          Désolé trompé de topic :s
          • Partager sur Facebook
          • Partager sur Twitter

          Problème lors du linking

          × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
          × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
          • Editeur
          • Markdown