Hello <br>
<br>
I've a problem : I use G_gisinit but I'm having some trouble understanding it<br>
<br>
>From what I've read :<br>
<br>
<p>
int G_gisinit (char *program_name)initialize gis libraryThis
  routine reads the user's GRASS environment file into memory and makes sure
  that the user has selected a valid database and mapset. It also initializes
  hidden variables used by other routines. If the user's database information is
  invalid, an error message is printed and the module exits.  The
  <b>program_name</b> is stored for later recall by
  <i>G_program_name.</i> It is recommended that argv[0] be used for the
  <b>program_name<br>
</b></p>
<p><b>Ok.<br>
</b></p>
<p><b>So I use it&nbsp; in my program, like :<br>
</b></p>
<p><b>&nbsp;int main(int argc, char **argv) {<br>
<br>
&nbsp;&nbsp; G_gisinit(argv[0]) ;<br>
}<br>
<br>
</b>

</p>
<p>
And the program just stands there :-S<br>
</p>
<p>I'm really confused! After all, what does this function do ? How am I supposed to use it?<br>
</p>
<p>Thanks :-)<br>
</p>
<br>