[GRASSLIST:336] Re: gis.h problem

Glynn Clements glynn at gclements.plus.com
Thu Mar 23 08:48:44 EST 2006


Ana Soares wrote:

> I have GRASS 6 installed, but I can't seem do have GIS library
> 
> $ gcc main.c
> main.c:8:17: error: gis.h: No such file or directory
> 
> Why does this happen?
> What must I do ?

GRASS doesn't install headers into the system header directories (e.g. 
/usr/include), but into the GRASS directory hierarchy (e.g. 
/usr/local/grass6/include). You need to use a -I switch to specify the
location, e.g.

	gcc -c -I /usr/local/grass6/include main.c

GRASS is quite a complex package, and may be quite hard to use if you
are new to C programming.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list