Menu

Compilation / msvc7 / FreeImage.lib (static)?

Help
rzr
2004-08-30
2012-10-31
  • rzr

    rzr - 2004-08-30

    I read instructions at :
    http://freeimage.sourceforge.net/developers.html

    This works fine under msvc 6 (Mode Multithread dll)
    but msvc 7 complains (in french)

    Anyone successed in this ? if yes what differs from msvc6 ?

    [
    /Od /I "/D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "MAIN_genimgfreeimage" /
    D "_MBCS" /FD /EHsc /RTC1 /MDd /YX"stdafx.h" /Fp".\Debug/genimgfreeimage.pch" /F
    o".\Debug/" /Fd".\Debug/" /W3 /c /ZI
    .\genimgfreeimage.cpp
    ]

    ----

    [
    /OUT:".\Debug/genimgfreeimage.exe" /INCREMENTAL:NO /NOLOGO /NODEFAULTLIB:"LIBCMT
    .lib" /DEBUG /PDB:".\Debug/genimgfreeimage.pdb" /SUBSYSTEM:CONSOLE /MACHINE:X86
    freeimage.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool
    .lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc3
    2.lib odbccp32.lib "\usr\local\Win32\opt\FreeImage-4.3.0\lib\FreeImage.lib"
    .\Debug\genimgfreeimage.obj
    ]

    ----

    LINK : warning LNK4075: ' /EDITANDCONTINUE' ignor  cause de la spcification '
    /INCREMENTAL:NO'
    LINK : warning LNK4098: conflit entre la bibliothque par dfaut 'MSVCRT' et les
    autres bibliothques ; utilisez /NODEFAULTLIB:library
    freeimage.lib(PluginXPM.obj) : error LNK2019: symbole externe non rsolu "__decl
    spec(dllimport) private: void __thiscall std::basic_string,class std::allocator
    >::_Tidy(bool)" (__imp_?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator
    @D@2@@std@@AAEX_N@Z) rfrenc dans la fonction "struct FIBITMAP * __cdecl Load(
    struct FreeImageIO *,void *,int,int,void *)" (?Load@@YAPAUFIBITMAP@@PAUFreeImage
    IO@@PAXHH1@Z)
    freeimage.lib(PluginXPM.obj) : error LNK2019: symbole externe non rsolu "__decl
    spec(dllimport) private: bool __thiscall std::basic_string,class std::allocator
    >::_Grow(unsigned int,bool)" (__imp_?_Grow@?$basic_string@DU?$char_traits@D@std@
    @V?$allocator@D@2@@std@@AAE_NI_N@Z) rfrenc dans la fonction "struct FIBITMAP
    * __cdecl Load(struct FreeImageIO *,void *,int,int,void *)" (?Load@@YAPAUFIBITMA
    P@@PAUFreeImageIO@@PAXHH1@Z)

     
    • Anonymous

      Anonymous - 2004-09-10

      Make sure that all the FreeImage projects, your app and all the C++ files in FreeImagePlus are using the same setting for:
      'Configuration Properties->C/C++/Code Generation/Runtime Library'

      What used to be LIC**.lib in VC6 is now MSVCRT.lib in VC7

       
      • rsaccon

        rsaccon - 2004-11-11

        I have the same problem. Runtime Libraries are all the same in my case.

        But what does the second statement "What used to be LIC**.lib in VC6 is now MSVCRT.lib in VC7" mean ? what needs to be changed ?

        regards
        Roberto

         

Log in to post a comment.