[Gdal-dev] Re: build gdal for mingw32 on cygwin

Norman Vine nhv at cape.com
Mon May 12 11:21:35 EDT 2003


Frank Warmerdam writes:
>
> Hisaji Ono wrote:
> > Hello, Mr. Warmerdam.
> >
> >  For R language, GNU-S, there are two packages,
> > RGDAL(http://keittlab.biosci.utexas.edu/R/GDAL/) &
> > RMap(http://www.maths.lancs.ac.uk/Software/Rmap/), using gdal to display
> > Raster & Vector map within R.
> >
> >  Currently these packages' binaries are only available for
> unix(or linux).
> >
> >  For cygwin, as you wrote, I could build gdal library on it. However R
> > doesn't support Cygwin.
> > So I have to build GDAL for mingw32.
> >  I've tried to build GDAL for mingw32 on Cygwin as follows.
>
> ...
>
> > ../../../port/cpl_vsi.h:172: ISO C++ forbids declaration of
> `vsi_l_offset'
> > with
> >
> >    no type
> > ../../../port/cpl_vsi.h:172: parse error before `(' token


Hmm... I build GDAL with both Cygwin and MingW32 and do not
see this error ??

Maybe there is a *very* recent change that effects something ?

>
> Of course, it would be more appropriate for me to actually test if the
> compiler is VC++, but offhand I am not sure how to do that.

#ifdef _MSC_VER  // All Microsoft Compilers define this

#  if _MSC_VER == 1200  // msvc++ 6.0 not sure about the other versions

also

#if defined (__MINGW32__)  || defined(__CYGWIN__)
#define unsigned long long ulong64
#define long long long64
#endif

Cheers

Norman








More information about the Gdal-dev mailing list