Hi,
2015-12-10 10:49 GMT+01:00 Even Rouault :
> Definitely. As pointed by Jürgen you're playing a dangerous game here re-using
> with mingw the cpl_config.h designed to work with MSVC.
> This allias of getcwd to _getcwd is for MSVC only.
> To work around this issue you could just #define getcwd g
Le jeudi 10 décembre 2015 10:41:20, Martin Landa a écrit :
> Hi,
>
> 2015-12-10 10:27 GMT+01:00 Even Rouault :
> > And normally ./configure should define HAVE_DIRECT_H in port/cpl_config.h
> > only if it is available.
>
> to be more precise, I am building GRASS against GDAL shipped via
> OSGeo4W
Hi,
2015-12-10 10:27 GMT+01:00 Even Rouault :
> Same here. Except when I look at
> https://svn.osgeo.org/grass/grass/trunk/raster/r.in.gdal/main.c, I see it is a
> G_snprintf() call, so perhaps you use an outdated version ? Or perhaps
no, I fixed that some minutes ago by replacing snprintf() by
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_DIR
Hi,
2015-12-10 10:27 GMT+01:00 Even Rouault :
> And normally ./configure should define HAVE_DIRECT_H in port/cpl_config.h
> only if
> it is available.
to be more precise, I am building GRASS against GDAL shipped via
OSGeo4W (which has HAVE_DIRECT_H already defined). I didn't find this
header in
Le jeudi 10 décembre 2015 10:11:19, Martin Landa a écrit :
> Hi all,
>
> 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
> # i
Hi,
2015-12-10 10:11 GMT+01:00 Martin Landa :
> 3) r.in.gdal
>
> OBJ.x86_64-w64-mingw32/main.o: In function `dump_rat':
> /home/landa/grass_trunk/raster/r.in.gdal/main.c:1601: undefined
> reference to `_snprintf'
> /home/landa/grass_trunk/raster/r.in.gdal/main.c:1601:(.text.startup+0x1655):
> relo
Hi all,
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
#endif
which is old header used by MSVC, modern is dirent.h, right?
I