[GRASS-user] g.extension in WinGrass - compiling error with addons
Glynn Clements
glynn at gclements.plus.com
Sat Jan 9 19:09:40 EST 2010
Helmut Kudrnovsky wrote:
> I've tested g.extension on a selfcompiled WinGrass65 (WinVista32, compiled in the osgeo4w-stack).
>
> (btw annoying to find a working windows-commandline-svn-version for msys in the osgeo4w-stack)
> c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:129: warning:
> `libintl_printf' is an unrecognized format function type
The Windows version of libintl.h "redirects" printf() etc via macros:
#undef printf
#define printf libintl_printf
This appears to be interfering with the use of:
__attribute__ ((format(printf, ...)))
for functions which accept printf()-style format strings
(G_fatal_error() etc).
This is problem for r.stream.basins because includes <grass/glocale.h>
before including <grass/gis.h> (via "global.h").
Try r40358.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list