[Gdal-dev] MinGW Build Error gdal-1.3.0

Frank Warmerdam fwarmerdam at gmail.com
Tue Aug 16 10:04:02 EDT 2005


On 8/16/05, Stefan Klug <Klug.Stefan at gmx.de> wrote:
> Hi everybody,
> 
> I get a build error with MinGW under Windows.
> tif_jpeg fails to compile...
> 
> My configure options are:
> ./configure --without-unix-stdio-64
> 
> The problem is in tif_jpeg.c line 68...
> 
> /* Define "boolean" as unsigned char, not int, per Windows custom. */
> #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
> 
> This seems to define HAVE_BOOLEAN without boolean being defined.
> If I add an #undef HAVE_BOOLEAN to the top of jmorecfg.h everything runs
> smoothly.
> 
> Is there an MinGW professional out there to give a clean solution?
> It took me some time to solve this issue for the first time, would be
> great if a solution could be committed to help other MinGW users.

Stefan,

This is not really a MingW specific issue.  In various forms it
comes up in other scenarios as well.

> Also the FAQ on gdal.org might be updated, as configure does everything
> right on MinGW, except the definition of  UNIX_STDIO_64, thats why I
> added --without-unix-stdio-64

Could you provide specific text you would suggest for the MingW 
case? 

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list