I need an image library, and I looked at FreeImage, http://freeimage.sourceforge.net/ . I want to link it statically with my application.
I tried loading the binaries and linking them, but I get 2019 linker errors when I try to call their functions, although I am sure that I bound it correctly.
So, I tried to download their source, converted them to "FreeImageLib.2008" in VS2010, and built it. It just works great on its own, but I still have the same problem when you contact it, my application that uses it still complains about linker errors.
I also set the entire project configuration to match my other projects, so there is no conflict with / MDd or / MTd, etc.
I did some digging at their source, and there are macros such as "FREEIMAGE_LIB", which suggests that it must be defined when creating the static library, and it is defined, but still it does not work.
I googled around and can't find any solid answers to this problem. The answer to Getting FreeImage to work with Visual Studio 2010 does not matter; I already defined the macro either before the header was included, or as an argument to the preprocessor, but dosnt works.
Is this library not intended to be used as a static library, or what could be the problem? Could anyone link FreeImage statically on VS2010 +?
thanks
c ++ image freeimage
Kaiserjohaan
source share