I have downloaded the FreeImage source code and done a static build myself for X64 MT DLL.
Everything works fine, except when I use link in the freeimage.lib file I get a lot of annoying linker warnings which I don't quite understand the cause for?
2>freeimage.lib(zutil.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'freeimage.lib(zutil.obj)' or at 'inReleasevc100.pdb'; linking object as if no debug info
... and it continous like that...
What is causing this and how do I get rid of it? I'm guessing it's some compiler option when I build FreeImage.
Here is the command line for the FreeImageLib project:
/I".." /I"..Lib" /I"..DeprecationManager" /I"..OpenEXRHalf"
/I"..OpenEXRIex" /I"..OpenEXRIlmImf" /I"..OpenEXRImath"
/I"..OpenEXRIlmThread" /nologo /W3 /WX- /Od /D "WIN32" /D "_DEBUG"
/D "OPJ_STATIC" /D "FREEIMAGE_LIB" /D "_CRT_SECURE_NO_DEPRECATE" /D
"LIBRAW_NODLL" /D "_VC80_UPGRADE=0x0710" /D "_MBCS" /GF- /Gm- /EHsc
/RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /openmp
/Fp".Debug/FreeImageLib.pch" /Fa".Debug/" /Fo".Debug/"
/Fd".Debug/" /Gd /errorReport:queue
EDIT:
I solved it by building it as a dynamic library instead. Though that is not the solution I had hoped for...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…