[Shapelib] Can't link to shapelib

Frank Warmerdam fwarmerdam at gmail.com
Fri Feb 18 13:16:32 EST 2005


On Fri, 18 Feb 2005 13:08:53 -0500 (EST), Yasir Malik
<ymalik at cs.stevens-tech.edu> wrote:
> Hello,
> I am having problems linking the shapelib to my program.  Here's what I'm
> doing:
> ymalik-> gcc tmp.c -I/tmp/shapelib-1.2.10 -L/tmp/shapelib-1.2.10/.libs -lshp
> ymalik-> ./a.out
> Shared object "libshp.so.1" not found
> ymalik->
> 
> The library compiled fine.

Yasir,

Either add /tmp/shapelib-1.2.10/.libs to your LD_LIBRARY_PATH or
add it through ldconfig.  

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent


More information about the Shapelib mailing list