Linking errors when building devil.dll for Mobile 5.0

yoursort

21-04-2007 16:45:52

Hey,

first I have to say I´m very curious to see Ogre running on my PPC and it´s really cool that you have done the port! Thx!
But I can´t build the entire solution because I got linking errors when I try to build the devil library:


Generating Code...
Verknüpfen...
Creating library Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Release/DevIL.lib and object Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Release/DevIL.exp
libjpeg.lib(jquant2.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libmng.lib(libmng_chunk_io.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
zlib.lib(trees.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libjpeg.lib(jchuff.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libjpeg.lib(jcmaster.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libjpeg.lib(jdcoefct.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libjpeg.lib(jdhuff.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libpng.lib(pngrutil.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libpng.lib(pngwutil.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libjpeg.lib(jdmarker.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libjpeg.lib(jerror.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
il_xpm.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
libpng.lib(png.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libpng.lib(pngerror.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
libpng.lib(pngmem.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
il_quantizer.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_sgi.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_targa.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_wal.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_pic.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_png.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_psd.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_psp.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_lif.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_mdl.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_pal.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_pcx.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_files.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_gif.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_hdr.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_jpeg.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_dcx.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_dds-save.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_dds.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
il_devil.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Release/DevIL.dll : fatal error LNK1120: 1 unresolved externals


I hope you can help me. I checked out the entire solution from the CVS-Rep.
Or can you provide a succesfull linked devil.dll?
Thx in advance!

yoursort

21-04-2007 23:55:46

I´ve found a solution for this. If you have SP1 for Visual Studio 2005 installed you have to add libcmt.lib to your projects where you get the linker errors and rebuild the solution.
This is because of a compiler-modification in SP1.
For details see http://blogs.msdn.com/mgaur/archive/2006/12/21/lnk2019-unresolved-external-symbol-gshandlercheck.aspx!

GenericBum

23-04-2007 16:36:52

Thanks for finding this. I'll make the adjustment and check in new project files.

GenericBum