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

Frank Warmerdam warmerdam at pobox.com
Thu Dec 11 14:05:32 EST 2008


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



More information about the gdal-dev mailing list