[Shapelib] need some help
Kyle Taylor
kyle.a.taylor at gmail.com
Thu Mar 10 12:24:45 EST 2011
Link error? I had a similar problem a few weeks ago. I didn't know what
flag to throw GCC when trying to compile against shapelib as a shared
library.
Try:
gcc -lshp /home/geotema/valatest/src/readshapetest.creadshapetest.c -o
readshapetest
If that doesn't work, it's probably an issue with how you installed
shapelib.
Kyle
On Wed, Mar 9, 2011 at 6:19 AM, calpas calpas <calpas2007 at yahoo.fr> wrote:
> Dear all,
>
> I am writting my first C application to access the shapefile and retrieve
> some data. I'm trying to use the shapelib to achieve that unfortunately I'm
> keeping on having the following errors:
> /home/geotema/valatest/src/readshapetest.c:19: undefined reference to
> `SHPOpen'
> /home/geotema/valatest/src/readshapetest.c:21: undefined reference to
> `SHPGetInfo'
>
> I cannot figure out what is missing. could anyone help me to sort out this
> issue???
>
> Cheers
>
>
>
> _______________________________________________
> Shapelib mailing list
> Shapelib at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/shapelib
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/shapelib/attachments/20110310/9d1b4889/attachment.htm
More information about the Shapelib
mailing list