Yes but now I have another problem !<br>
<br>
This works fine :<br>
<br>
gcc -c -I /usr/lib/grass/include main.c <br>
<br>
But :<br>
<br>
$ gcc -o prog main.o<br>
main.o: In function `main':<br>
main.c:(.text+0x26): undefined reference to `G_gisinit'<br>
collect2: ld returned 1 exit status<br>
<br>
OR<br>
<br>
$ gcc -I /usr/lib/grass/include -o prog main.o<br>
main.o: In function `main':<br>
main.c:(.text+0x26): undefined reference to `G_gisinit'<br>
collect2: ld returned 1 exit status<br>
<br>
is no good.... :-S<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Glynn Clements</b> &lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;<br>Date: 23/03/2006 13:48
<br>Subject: Re: [GRASSLIST:332] gis.h problem<br>To: Ana Soares &lt;<a href="mailto:tiobrothercamarada@gmail.com">tiobrothercamarada@gmail.com</a>&gt;<br>Cc: <a href="mailto:grasslist@baylor.edu">grasslist@baylor.edu</a>
<br><br></span><br>Ana Soares wrote:<br><br>&gt; I have GRASS 6 installed, but I can't seem do have GIS library<br>&gt;<br>&gt; $ gcc main.c<br>&gt; main.c:8:17: error: gis.h: No such file or directory<br>&gt;<br>&gt; Why does this happen?
<br>&gt; What must I do ?<br><br>GRASS doesn't install headers into the system header directories (e.g.<br>/usr/include), but into the GRASS directory hierarchy (e.g.<br>/usr/local/grass6/include). You need to use a -I switch to specify the
<br>location, e.g.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gcc -c -I /usr/local/grass6/include main.c<br><br>GRASS is quite a complex package, and may be quite hard to use if you<br>are new to C programming.<br><br>--<br>Glynn Clements &lt;<a href="mailto:glynn@gclements.plus.com">
glynn@gclements.plus.com</a>&gt;<br>