[gdal-dev] direct.h and other Windows issue

Jürgen E. Fischer jef at norbit.de
Thu Dec 10 01:42:01 PST 2015


Hi Even,

On Thu, 10. Dec 2015 at 10:27:57 +0100, Even Rouault wrote:
> > currently I am working on Windows GRASS builds (using MSYS2 +
> > MinGW64). I have still some issue with GDAL which I am not sure how to
> > correctly solve:
> > 
> > 1) GDAL has enabled in cpl_port.h
> > 
> > #ifdef HAVE_DIRECT_H
> > #  include <direct.h>
> > #endif
> > 
> > which is old header used by MSVC, modern is dirent.h, right?

> https://en.wikipedia.org/wiki/Direct.h
> http://pubs.opengroup.org/onlinepubs/7908799/xsh/dirent.h.html
> 
> Don't seem quite the same.
> 
> And normally ./configure should define HAVE_DIRECT_H in port/cpl_config.h only if 
> it is available.

It's probably a OSGeo4W issue - because there GDAL is built with MSVC (w/o
configure), while GRASS is built with mingw - using the MSVC built GDAL.


Jürgen

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-31
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151210/f27cc357/attachment.sig>


More information about the gdal-dev mailing list