[GRASS-windows] G_gisinit problems
Glynn Clements
glynn at gclements.plus.com
Thu Jan 14 15:47:38 EST 2010
JaviZ wrote:
> I have instaled Cygwin X-Server and Grass6.1.cvs on a Pc computer with
> Windows XP. I am compliling a program and I have this error:
>
> gcc -I/include -c ew_horizon.c
> ew_horizon.c: In function 'main':
> ew_horizon.c:46: error: structure has no member named 'keywords'
This field didn't exist in 6.1; it was added in 6.2.
I suggest that you update to a more recent version.
> the code in ew_horizon.c:46: is:
> #include </usr/local/grass6.1.cvs/include/grass/gis.h>
> #include </usr/local/grass6.1.cvs/include/grass/gisdefs.h>
These should be:
#include <grass/gis.h>
#include <grass/gisdefs.h>
Use e.g. -I/usr/local/grass6.1.cvs/include to tell the compiler where
to find the headers.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-windows
mailing list