[gdal-dev] gdal 1.6 on Windows XP build error (tif_ojpeg.c)

Gong, Shawn (Contractor) Shawn.Gong at drdc-rddc.gc.ca
Thu Dec 11 14:12:58 EST 2008


thanks Frank.
I will give vc6 one more try, then migrate to VC 2005.

Shawn



-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam
Sent: Thursday, December 11, 2008 2:06 PM
To: Gong, Shawn (Contractor)
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] gdal 1.6 on Windows XP build error (tif_ojpeg.c)

Gong, Shawn (Contractor) wrote:
> hi list,
> 
> I used MS VC++ 6.0 to build gdal. Here is the error for file:
> 
> C:\build19\gdal-1.6.0\frmts\gtiff\libtiff\tif_ojpeg.c
> 
> tif_ojpeg.c(599) : error C2632: 'long' followed by 'long' is illegal
> 
> tif_ojpeg.c(601) : error C2632: 'long' followed by 'long' is illegal
> 
> tif_ojpeg.c(606) : error C2632: 'long' followed by 'long' is illegal
> 
> tif_ojpeg.c(613) : error C2632: 'long' followed by 'long' is illegal
> 
> tif_ojpeg.c(620) : error C2632: 'long' followed by 'long' is illegal
> 
> Should I change "unsigned long long" to "unsigned long" ?

Shawn,

I think vc6 uses __int64 instead of long long.

You might want to file a ticket against libtiff about this though VC6
compatability is less and less a priority for me.

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

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list