Link error?  I had a similar problem a few weeks ago.  I didn&#39;t know what flag to throw GCC when trying to compile against shapelib as a shared library.<div><br></div><div>Try:</div><div><br></div><div>gcc -lshp <span class="Apple-style-span" style="font-family: &#39;times new roman&#39;, &#39;new york&#39;, times, serif; font-size: 16px; ">/home/geotema/valatest/src/readshapetest.c</span>readshapetest.c -o readshapetest</div>
<div><br></div><div>If that doesn&#39;t work, it&#39;s probably an issue with how you installed shapelib.  </div><div><br></div><div>Kyle</div><div><div><br><div class="gmail_quote">On Wed, Mar 9, 2011 at 6:19 AM, calpas calpas <span dir="ltr">&lt;<a href="mailto:calpas2007@yahoo.fr">calpas2007@yahoo.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Dear all,<br><br>I am writting my first C application to access the shapefile and retrieve some data. I&#39;m trying to use the shapelib to achieve that unfortunately I&#39;m keeping on having the following errors: <br>
    /home/geotema/valatest/src/readshapetest.c:19: undefined reference to `SHPOpen&#39;<br>    /home/geotema/valatest/src/readshapetest.c:21: undefined reference to `SHPGetInfo&#39;<br><br>I cannot figure out what is missing. could anyone help me to sort out this issue???<br>
<br>Cheers<br><br></div>
</div><br>




      </div><br>_______________________________________________<br>
Shapelib mailing list<br>
<a href="mailto:Shapelib@lists.maptools.org">Shapelib@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/shapelib" target="_blank">http://lists.maptools.org/mailman/listinfo/shapelib</a><br>
<br></blockquote></div><br></div></div>