hi,
there was a long discussion of this problem in these threads:
http://lists.fedoraproject.org/pipermail/fedora-mingw/2009-May/001380.html
http://sourceforge.net/mailarchive/message.php?msg_name=4A12C61E.9010701%40lfarkas.org
http://sourceforge.net/mailarchive/message.php?msg_name=20090424140822.GA21954%40amd.home.annexia.org
but i try to summarize the problem here.
libjpeg contains two typedef/define INT32 and boolean which has also defined in windwos system header files rpcndr.h and basetsd.h. so if a project would like to use libjpeg's header it does matter which header files are included first in the given compilation unit since the result ABI will be different.
this situation makes
a few example of the solution:
ftp://ftp.gnome.org/pub/GNOME/binaries/win32/
http://gnuwin32.sourceforge.net/packages/jpeg.htm
Anonymous