As soon as I built the FreeImaged.lib and #include
d FreeImage.h
linked it to my WORKING wxWidgets + OpenCV dependent project, I got errors mainly in two files: init.h
and atomic.h
.
Most of the errors state that:
HINSTANCE
is undefinedwxEntry
already defined as functionwxEntryStart
already defined as functionInterlockedDecrement
is undefined
If I comment out the #include <FreeImage.h>
then all the errors are gone. Why does this happen? How can I fix this?