<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR>

<DIV dir=ltr align=left><SPAN class=175274106-09032009><FONT face=Arial color=#0000ff size=2>Hi Markus,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=175274106-09032009><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=175274106-09032009><FONT face=Arial color=#0000ff size=2>Thanks for your reply. I have included the following files.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=175274106-09032009><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=175274106-09032009><FONT face=Arial color=#0000ff size=2>&nbsp;#include &lt;stdio.h&gt; <BR>&nbsp;#include
&lt;stdlib.h&gt; <BR>&nbsp;#include &lt;string.h&gt; <BR>&nbsp;#include
&lt;grass/gis.h&gt; <BR>#include &lt;grass/Vect.h&gt; <BR>#include
&lt;grass/dbmi.h&gt; <BR>#include &lt;grass/gisdefs.h&gt; </FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=175274106-09032009></SPAN><FONT face=Arial><FONT color=#0000ff><FONT size=2>B<SPAN class=175274106-09032009>ut still getting the
same error. From my understanding, gcc is able to find the definitions of
function but not the implementation i.e. it is not able to link to the .dll
files. I tried using following command:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009>$ gcc -I ./include -L ./lib/
main.cpp</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009>but still getting the same
error.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009>-------------------</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009>Please suggest how to link .dll files to the sample
grass code through cygwin.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009>Thanks in advance.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009>Reagrds,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009>Kartik</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=175274106-09032009></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Markus Neteler (via Nabble)
[mailto:<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2447717&i=0" target="_top" rel="nofollow">ml-user+57828-2140781643@...</a>] <BR><B>Sent:</B> Saturday, March
07, 2009 1:18 AM<BR><B>To:</B> Kartik Ballal (WT01 - Business Technology
Services (FS &amp; TMT))<BR><B>Subject:</B> Re: [GRASS-windows] compiler error
'undefined reference to G_gisinit(char const*)<BR></FONT><BR></DIV>
<DIV></DIV>On Fri, Mar 6, 2009 at 1:39 PM, KB &lt;<A href="http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=2437747&amp;i=0" target=_top rel="nofollow">kartik.ballal@...</A>&gt; wrote:
<DIV class=shrinkable-quote><div class='shrinkable-quote'><BR>&gt; <BR>&gt; Hi, <BR>&gt; I have installed
6.2.3 version on windows and trying to compile r.example <BR>&gt; using cygwin.
I am using below command from /usr/local/grass-6.2.3 path <BR>&gt; <BR>&gt; gcc
-I ./include main.cpp <BR>&gt; <BR>&gt; --------------------- <BR>&gt; on
executing the above command I get an error 'undefined reference to ...' <BR>&gt;
(all function used in rater.c). Please help ... <BR>&gt; -- </DIV></div>You need
to add the path to the GRASS include files. <BR><BR>Markus
<BR>_______________________________________________ <BR>grass-windows mailing
list <BR><A href="http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=2437747&amp;i=1" target=_top rel="nofollow">grass-windows@...</A> <BR><A href="http://lists.osgeo.org/mailman/listinfo/grass-windows" target=_top rel="nofollow">http://lists.osgeo.org/mailman/listinfo/grass-windows</A><BR><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>


<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/compiler-error-%27undefined-reference-to-G_gisinit%28char-const*%29-tp2435408p2447717.html">RE: [GRASS-windows] compiler error 'undefined reference to  G_gisinit(char const*)</a><br>
Sent from the <a href="http://n2.nabble.com/Grass---Win-f1928820.html">Grass - Win mailing list archive</a> at Nabble.com.<br>