AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2002.07.31 22:28 "jpeg in tiff problem", by Roland Rabien
2002.08.01 05:28 "Re: jpeg in tiff problem", by Tom Lane
2002.08.01 16:42 "RE: jpeg in tiff problem", by Roland Rabien

2002.08.01 16:42 "RE: jpeg in tiff problem", by Roland Rabien

I'd bet lunch that the problem is your application has a different idea of sizeof(boolean) than libjpeg has. Check what libjpeg was built with, and check what's getting imported from the Windoze header files you use. The struct-size check was put in specifically to catch this kind of problem (debugging it any other way was really a nightmare...)

Yes, that was the problem, thank you very much. I never would have found it on my own.

I removed the follow from tif_jpeg.c, since rpcndr.h defines boolean as unsigned char and jpeglib defines boolean as int it caused problems.

/* The windows RPCNDR.H file defines boolean. */
/*
#ifdef __RPCNDR_H__
#define HAVE_BOOLEAN
#endif
*/