<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Dear Frank,<br><br>Thanks for your kindly message. I am quite a newbie I dont actually know how to link my program against the shapelib. Can you please provide me with a sample of Makefile that I might try. I'm using the autotools to build the program. I've gone through some tutorial but cannot come through.<br>thanks for your help<br><br>Cheers.<br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Frank Warmerdam &lt;warmerdam@pobox.com&gt;<br><b><span style="font-weight: bold;">À :</span></b> shapelib@lists.maptools.org<br><b><span style="font-weight: bold;">Envoyé le :</span></b>
 Mer 9 mars 2011, 6h 54min 50s<br><b><span style="font-weight: bold;">Objet&nbsp;:</span></b> Re: [Shapelib] need some help<br></font><br>On 11-03-09 06:19 AM, calpas calpas wrote:<br>&gt; Dear all,<br>&gt;<br>&gt; I am writting my first C application to access the shapefile and retrieve some<br>&gt; data. I'm trying to use the shapelib to achieve that unfortunately I'm keeping<br>&gt; on having the following errors:<br>&gt; /home/geotema/valatest/src/readshapetest.c:19: undefined reference to `SHPOpen'<br>&gt; /home/geotema/valatest/src/readshapetest.c:21: undefined reference to `SHPGetInfo'<br>&gt;<br>&gt; I cannot figure out what is missing. could anyone help me to sort out this issue???<br><br>Calpas Calpas,<br><br>Presumably you are not linking against the shapelib modules.&nbsp; You<br>don't give your compile or link information so I can't propose a<br>variation but basically you will likely need to include the object<br>code from shapelib in your
 link in some fashion.&nbsp; Perhaps by listing<br>the paths to shpopen.o, dbfopen.o, safileio.o and perhaps shptree.o.<br><br>Looking at how the commandline programs in shapelib are linked in<br>shapelib/Makefile might give you a hint as to how to do so.<br><br>Best regards,<br>-- <br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up&nbsp;  | Frank Warmerdam, <a ymailto="mailto:warmerdam@pobox.com" href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush&nbsp; &nbsp; | Geospatial Programmer for Rent<br><br>_______________________________________________<br>Shapelib mailing list<br><a ymailto="mailto:Shapelib@lists.maptools.org" 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></div></div>
</div><br>




      </body></html>