<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<DIV><FONT size=2>Hi, Warmerdam: </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> I want to use gen2shp in CYGWIN, so I need to compile
Shapefile C Library. But when I use "make lib", there were errors:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV><FONT size=2>
<DIV><BR>*** Warning: This library needs some functionality provided by
-lc.<BR>*** I have the capability to make that library automatically link in
when<BR>*** you link to this library. But I can only do this if you have
a<BR>*** shared version of the library, which you do not appear to have.<BR>***
The inter-library dependencies that have been dropped here will be<BR>***
automatically added whenever a program is linked with this library<BR>*** or is
declared to -dlopen it.<BR>gcc -shared shpopen.lo shptree.lo
dbfopen.lo -Wl,-soname -Wl,libshp.so.1 -o
.libs/libshp.so.<BR>1.0.1<BR>(cd .libs && rm -f libshp.so.1 &&
ln -s libshp.so.1.0.1 libshp.so.1)<BR>(cd .libs && rm -f libshp.so
&& ln -s libshp.so.1.0.1 libshp.so)<BR>ar cru .libs/libshp.a
shpopen.o shptree.o dbfopen.o<BR>ranlib .libs/libshp.a<BR>creating
libshp.la<BR>(cd .libs && rm -f libshp.la && ln -s ../libshp.la
libshp.la)<BR>rm -fr .libs/libshp.la .libs/libshp.* .libs/libshp.*<BR>rm -fr
.libs/libshp.lax<BR>mkdir .libs/libshp.lax<BR>/usr/bin/ld -G -h libshp.so.1 -o
.libs/libshp.so.1.0.1 shpopen.lo shptree.lo dbfopen.lo
-lc<BR>dbfopen.lo: In function
`DBFReadAttribute':<BR>/cygdrive/d/cygwin/opt/shapelib-1.2.10/dbfopen.c:716:
undefined reference to
`__getreent'<BR>/cygdrive/d/cygwin/opt/shapelib-1.2.10/dbfopen.c:724: undefined
reference to `__getreent'<BR>make: *** [lib] Error 1<BR></DIV>
<DIV>Do you know how to fix it ?</DIV>
<DIV>Thanks.</DIV>
<DIV> </DIV>
<DIV>Best regards,</DIV>
<DIV>kite</DIV></FONT></FONT></DIV></BODY></HTML>