PDA

View Full Version : Linking Problem With MS Visual C++



daredevil14
07-25-2008, 11:50 AM
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 :


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

rombust
07-26-2008, 07:17 PM
See, http://www.gamedev.net/community/forums/topic.asp?topic_id=278609
This may help

daredevil14
07-27-2008, 09:41 AM
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!!

Magnus Norddahl
07-27-2008, 11:44 PM
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.