Hei :-)<br>
<br>
I already did that.<br>
<br>
My problem is how to integrate that in a program of my own.<br>
For example, <br>
<br>
#include <stdio.h><br>
<br>
#include "interface.h"<br>
#include <unistd.h><br>
#include <stdlib.h><br>
<br>
#include "gis.h"<br>
<br>
<br>
int main(int argc, char **argv) {<br>
<br>
printf("Argv[0] = %s\n", argv[0]) ;<br>
<br>
G_gisinit("prot1") ;<br>
<br>
printf("G_program_name => %s\n", G_program_name()) ;<br>
<br>
// if (G_parser(argc, argv))<br>
//exit (-1);<br>
<br>
// ask_interface() ;<br>
<br>
}<br>
<br>
I don 't understant why this doesn't work :-(<br>
<br>
Output :<br>
seabiscuit@ubuntu:~/Estagio/GRASS_Prototipo1$ ./prot1<br>
Argv[0] = ./prot1<br>
<br>
bla<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
seabiscuit@ubuntu:~/Estagio/GRASS_Prototipo1$<br>
<br>
(this stopped because I did Ctr C)<br>
<br>
This is what I'm having trouble understanding ....<br>
Help please :-)<br>
<br>
<br><br><div><span class="gmail_quote">28 Mar 2006 10:08:10 -0000, No Name <<a href="mailto:grasschoper@rediffmail.com">grasschoper@rediffmail.com</a>>:</span><blockquote class="gmail_quote" DEFANGED_STYLE="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<p>
<br>
there a programmers manual available in download section on official sitye of GRASS. Give some time on reading it.<br>
<br>
enjoy grass<br>
nitin<br>
<br>
On Tue, 28 Mar 2006 Ana Soares wrote :</p><div><span class="e" id="q_10a4053ccafa1524_1"><br>
>Thanks!<br>
><br>
>That really helped :) But I have a lttle problem : I can't compile it!<br>
>Any hints ?<br>
><br>
>Thanks :-)<br>
><br>
>2006/3/27, Massimiliano Cannata <<a href="mailto:massimiliano.cannata@supsi.ch" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">massimiliano.cannata@supsi.ch</a>>:<br>
> ><br>
> > Ana Soares wrote:<br>
> ><br>
> > > Hello :-)<br>
> > ><br>
> > > I'm getting really desperate with grass ...<br>
> > > I want to use its libraries in my C program, but I can't seem to even<br>
> > > understand how to use G_gisinit :(<br>
> > ><br>
> > > Is there any manual that you recommend to helo me out?<br>
> > ><br>
> > > Help / Rescue would be very much appreciated!!<br>
> > ><br>
> > > Thanks :-)<br>
> ><br>
> > give a look to r.example and v.exaple files<br>
> > (<a href="http://grass.itc.it/devel/index.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://grass.itc.it/devel/index.php</a>)<br>
> > hope it helps...<br>
> > Max<br>
> ><br>
> > --<br>
> ><br>
> > Eng. Massimiliano Cannata<br>
> > Scuola Universitaria Professionale della Svizzera Italiana<br>
> > Istituto Scienze della Terra<br>
> > Via Trevano, c.p. 72<br>
> > CH-6952 Canobbio-Lugano<br>
> > Tel: +41 (0)58 666 62 18<br>
> > Fax +41 (0)58 666 62 09<br>
> ><br>
> ><br>
> ><br>
</span></div><p></p>
<br><br>
<a href="http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3" target="_blank" DEFANGED_Onclick="return top.js.OpenExtLink(window,event,this)"><DEFANGED_IMG border="0" hspace="0" vspace="0">
</a>
</blockquote></div><br>