Results 1 to 4 of 4

Thread: Linking Problem With MS Visual C++

  1. #1

    Default Linking Problem With MS Visual C++

    I've installed ClanLib 0.8.1 on Win XP SP1, using MS Visual C++ 6.0

    After installing the latest version of Microsoft Platform SDK, and after installing a recent DirectX SDK... And Visual Studio SP5 , after alot of problems, i've arrived to having a problem when linking any example that contains ClanLib... when i try the mentioned example in the install.win32 file, i get the following :

    Code:
    Linking...
    libpng-static-mt.lib(pngrutil.obj) : error LNK2001: unresolved external symbol ___security_cookie
    zlib-static-mt.lib(trees.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libpng-static-mt.lib(pngwutil.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libpng-static-mt.lib(pngerror.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libpng-static-mt.lib(pngmem.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libpng-static-mt.lib(pngvcrd.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libpng-static-mt.lib(pngwrite.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libpng-static-mt.lib(png.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libpng-static-mt.lib(pngread.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libpng-static-mt.lib(pngrtran.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libjpeg-static-mt.lib(jcmaster.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libjpeg-static-mt.lib(jdcoefct.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libjpeg-static-mt.lib(jdhuff.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libjpeg-static-mt.lib(jquant2.obj) : error LNK2001: unresolved external symbol ___security_cookie
    zlib-static-mt.lib(inftrees.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libjpeg-static-mt.lib(jerror.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libjpeg-static-mt.lib(jdmarker.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libjpeg-static-mt.lib(jchuff.obj) : error LNK2001: unresolved external symbol ___security_cookie
    libpng-static-mt.lib(pngrutil.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    zlib-static-mt.lib(trees.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libpng-static-mt.lib(pngwutil.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libpng-static-mt.lib(pngerror.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libpng-static-mt.lib(pngmem.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libpng-static-mt.lib(pngvcrd.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libpng-static-mt.lib(pngwrite.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libpng-static-mt.lib(png.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libpng-static-mt.lib(pngread.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libpng-static-mt.lib(pngrtran.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libjpeg-static-mt.lib(jcmaster.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libjpeg-static-mt.lib(jdcoefct.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libjpeg-static-mt.lib(jdhuff.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libjpeg-static-mt.lib(jquant2.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    zlib-static-mt.lib(inftrees.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libjpeg-static-mt.lib(jerror.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libjpeg-static-mt.lib(jdmarker.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libjpeg-static-mt.lib(jchuff.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    libjpeg-static-mt.lib(jerror.obj) : error LNK2001: unresolved external symbol ___iob_func
    libpng-static-mt.lib(pngwutil.obj) : error LNK2001: unresolved external symbol ___iob_func
    libpng-static-mt.lib(pngerror.obj) : error LNK2001: unresolved external symbol ___iob_func
    libpng-static-mt.lib(pngrutil.obj) : error LNK2001: unresolved external symbol ___iob_func
    libjpeg-static-mt.lib(jcdctmgr.obj) : error LNK2001: unresolved external symbol __ftol2_sse
    libjpeg-static-mt.lib(jidctflt.obj) : error LNK2001: unresolved external symbol __ftol2_sse
    libpng-static-mt.lib(pngset.obj) : error LNK2001: unresolved external symbol __ftol2_sse
    libpng-static-mt.lib(pngrtran.obj) : error LNK2001: unresolved external symbol __ftol2_sse
    libpng-static-mt.lib(pngwrite.obj) : error LNK2001: unresolved external symbol __gmtime64
    Release/kaka.exe : fatal error LNK1120: 5 unresolved externals
    Error executing link.exe.
    *Note that the libs are named just like they were generated ( e.g : clanApp-static-mt, clanApp-static-mt-debug, clanCore-static-mt... )
    *Note that when i go to : project settings => Link => Input ( Drop Menu ) => Additional Library Path, i don't add the extra libs because they already exist, and i added them anyway, nothing worked...

    Any help would be appreciated,
    Raed

  2. #2

  3. #3

    Default

    ok i've installed the "Summer Update" of DirectX 9.0 SDK, i found the extra LIB that is for MS Visual Studio 6.0, i refered to it in the directories settings, but still not working!!

  4. #4
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default

    Those are linker errors from libpng, libjpeg, and so on - not from ClanLib.

    I'm guessing here, but if you are using the precompiled binaries for VC70 or newer with VC60, then that is probably why it cannot find this symbol. It is most likely an internal symbol used by VC7x and never versions of the compiler, which VC60 knows nothing about and thus just dumps it as a linker error.

    To fix this problem, rebuild the external libraries with your compiler.

Similar Threads

  1. Help! linking error
    By thfai2000 in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 10-30-2008, 04:30 AM
  2. collision data / visual profile help, something's not right
    By Uhfgood in forum Novashell Game Creation System
    Replies: 6
    Last Post: 07-13-2008, 03:23 AM
  3. Visual Studio Express c++ 8 help ??
    By babyvegas in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 06-19-2008, 07:11 AM
  4. Linking Problems.
    By TheBaron in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 11-16-2007, 08:22 PM
  5. Linking errors with VC++ Express 2005
    By lixopmstp in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 09-07-2007, 08:59 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •