[Gdal-dev] Use of assert() on troublesome files

Andrey Kiselev dron at ak4719.spb.edu
Fri Mar 5 03:52:05 EST 2004


On Fri, Mar 05, 2004 at 02:40:30AM -0500, Ben Discoe wrote:
> > The most interesting thing here is that we still have 
> > troubles with the size of boolean datatype. Ben, do you
> > using external libtiff and libjpeg libraries? If yes,
> > what version of libtiff?
> In my nmake.opt, there are lines like "if using an external library
> uncomment the following lines," and i haven't uncommented any of them for
> JPEG, PNG, TIFF, GEOTIFF.  So i am left to assume that GDAL is using the
> internal versions for all of these.
> Compiler is MSVC 7.1 on Windows XP.

It seems that I have made a mistake when fixing that problem. Please,
try the following patch against tif_jpeg.c and see if problem with
"JPEGLib: JPEG parameter struct mismatch" disappeared:


--- tif_jpeg.c.bak	2004-03-05 11:47:34.000000000 +0300
+++ tif_jpeg.c	2004-03-05 11:47:43.000000000 +0300
@@ -69,8 +69,8 @@
 #if defined(__WIN32__)
 # ifndef __RPCNDR_H__            /* don't conflict if rpcndr.h already read */
    typedef unsigned char boolean;
-# endif
 # define HAVE_BOOLEAN            /* prevent jmorecfg.h from redefining it */
+# endif
 #endif
 
 #include "jpeglib.h"


-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517



More information about the Gdal-dev mailing list