<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2>I have installed 6.2.3 version on windows and 
trying to compile r.example using cygwin. I am using below command from<SPAN 
class=810143606-10032009> folder </SPAN>path<SPAN class=810143606-10032009>: 
</SPAN>&nbsp;/usr/local/grass-6.2.3&nbsp;<SPAN class=810143606-10032009>where I 
have placed the source file.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=810143606-10032009>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>$ gcc -I ./include main.cpp</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=810143606-10032009>On 
</SPAN>executing the above command<SPAN class=810143606-10032009>,</SPAN> I get 
an error<SPAN class=810143606-10032009>: </SPAN>&nbsp;'undefined reference to 
G_gisinit' (<SPAN class=810143606-10032009>also for </SPAN>all&nbsp;<SPAN 
class=810143606-10032009>other </SPAN>function<SPAN 
class=810143606-10032009>s</SPAN> used in r.example ). </FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT face=Arial><FONT size=2><FONT 
face=Arial size=2></FONT></FONT></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>All the .h files are available at 
"./include/grass/gis.h". I&nbsp;<SPAN class=810143606-10032009>also 
</SPAN>included the necessary .h files in the code.</FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV><FONT face=Arial size=2>&gt;&nbsp; #include 
    &lt;stdio.h&gt;<BR>&gt;&nbsp; #include &lt;stdlib.h&gt;<BR>&gt;&nbsp; 
    #include &lt;string.h&gt;<BR>&gt;&nbsp; #include 
    &lt;grass/gis.h&gt;<BR>&gt;&nbsp;<SPAN class=810143606-10032009> 
    </SPAN>#include &lt;grass/Vect.h&gt;<BR>&gt;&nbsp;<SPAN 
    class=810143606-10032009> </SPAN>#include 
    &lt;grass/dbmi.h&gt;<BR>&gt;&nbsp;<SPAN class=810143606-10032009> 
    </SPAN>#include &lt;grass/gisdefs.h&gt;</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
<DIV><FONT face=Arial><FONT size=2>As per my understanding this er<SPAN 
class=810143606-10032009>ror can occur during linking when compiler is not able 
to find the function definition.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=810143606-10032009></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=810143606-10032009>Please help me 
in resolving this error.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=810143606-10032009></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=810143606-10032009>Regards,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=810143606-10032009>Kartik</SPAN></FONT></FONT></DIV><P><strong><span style='font-size:10.0pt;font-family:
"Palatino Linotype","serif";color:green'> Please do not print this email unless it is absolutely necessary. </span></strong><span style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>


<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>

<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>
<p>
www.wipro.com
</p>
</BODY></HTML>