To compile fotoxx with the dynamic library installed by the FreeImage
package (libfreeimage-dev), make the following changes:

In the source program fotoxx-N.N.cpp, change the FreeImage include to:
   #include <FreeImage.h>

In the Makefile, change the LFLAGS line to:
   LFLAGS = -O -Wall -lfreeimage -rdynamic `pkg-config --libs gtk+-2.0 gthread-2.0`

