[Shapelib] How to compile Shapefile C Library in CYGWIN ??
Lei, Kuo-Rong
kite at ncor.ntu.edu.tw
Wed Jan 4 04:36:59 EST 2006
Hi, Warmerdam:
I want to use gen2shp in CYGWIN, so I need to compile Shapefile C Library. But when I use "make lib", there were errors:
*** Warning: This library needs some functionality provided by -lc.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
gcc -shared shpopen.lo shptree.lo dbfopen.lo -Wl,-soname -Wl,libshp.so.1 -o .libs/libshp.so.
1.0.1
(cd .libs && rm -f libshp.so.1 && ln -s libshp.so.1.0.1 libshp.so.1)
(cd .libs && rm -f libshp.so && ln -s libshp.so.1.0.1 libshp.so)
ar cru .libs/libshp.a shpopen.o shptree.o dbfopen.o
ranlib .libs/libshp.a
creating libshp.la
(cd .libs && rm -f libshp.la && ln -s ../libshp.la libshp.la)
rm -fr .libs/libshp.la .libs/libshp.* .libs/libshp.*
rm -fr .libs/libshp.lax
mkdir .libs/libshp.lax
/usr/bin/ld -G -h libshp.so.1 -o .libs/libshp.so.1.0.1 shpopen.lo shptree.lo dbfopen.lo -lc
dbfopen.lo: In function `DBFReadAttribute':
/cygdrive/d/cygwin/opt/shapelib-1.2.10/dbfopen.c:716: undefined reference to `__getreent'
/cygdrive/d/cygwin/opt/shapelib-1.2.10/dbfopen.c:724: undefined reference to `__getreent'
make: *** [lib] Error 1
Do you know how to fix it ?
Thanks.
Best regards,
kite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/shapelib/attachments/20060104/8b9f8f7c/attachment.html
More information about the Shapelib
mailing list