I need a image library and I've been looking into FreeImage, http://freeimage.sourceforge.net/. I want to link it statically with my application.
I have tried downloading the binaries and link it with, but I get 2019 linker errors when I try to call their functions, even though I am positive I linked it correct.
So then I tried to download their source, converted their "FreeImageLib.2008" to VS2010 and built it. It builds just fine on its own, but I still have the same problem when linking against it, my application that uses it still complaints about linker errors.
I also set all the project configuration to match my other projects, so there is no conflict with /MDd or /MTd, etc..
I did some digging in their source and there are macros like "FREEIMAGE_LIB" which suggests it should be defined when building a static library, and it IS defined, yet still it dosn't work.
I've googled around and cannot find any solid answers to this issue. The answer on Getting FreeImage to work with Visual Studio 2010 makes no difference; I already defined the macro either before including the header or as a preprocessor argument but it dosnt work.
Is this library not meant to be used as a static library, or what could possibly be the issue? Has anyone been able to link FreeImage statically on VS2010+?
Thanks