<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-2022-jp">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>>However, i <BR>>come into the follow error when compiling postgis 
:<BR><FONT size=2>></FONT><BR>>In function 
`main':<BR>>/usr/src/postgresql-7.1.3/contrib/postgis-<BR>>0.6.1/loader/pgsql2shp.c:156: 
undefined reference to 
`PQconnectdb'<BR>>/usr/src/postgresql-7.1.3/contrib/postgis-<BR>>0.6.1/loader/pgsql2shp.c:160: 
undefined reference to 
`PQstatus'<BR>>/usr/src/postgresql-7.1.3/contrib/postgis-<BR>>0.6.1/loader/pgsql2shp.c:163: 
undefined reference to `PQerrorMessage'<BR>>(omitting the rest)<BR><BR>>It 
seems that it may not be able to link with some kind of <BR>>libraries 
...<BR>>can anyone tell me how can i fix the problem?<BR></DIV>
<DIV><FONT size=2> I think it is right.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> But I dont' know how solve this. So I compiled 
pgsql2shp.c by directly specified library installed path like belows and 
succeded.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> gcc  pgsql2shp.c dbfopen.c shpopen.c -o pgsql2shp 
-O2 -Wmissing-prototypes -Wmissing-declarations -I. -L/usr/local/pgsql/lib -lpq 
-I/usr/local/pgsql/include -I/usr/local/include -DFRONTEND 
-DSYSCONFDIR='"/usr/local/pgsql/etc"' -L/usr/local/lib -g<BR></FONT></DIV>
<DIV> </DIV>
<br>

<!-- |**|begin egp html banner|**| -->

<table border=0 cellspacing=0 cellpadding=2>
<tr bgcolor=#FFFFCC>
<td align=center><font size="-1" color=#003399><b>Yahoo! Groups Sponsor</b></font></td>
</tr>
<tr bgcolor=#FFFFFF>
<td align=center width=470><a href="http://rd.yahoo.com/M=212180.1660613.3195489.1269402/D=egroupweb/S=1705007183:HM/A=812075/R=0/*http://www.verisign.com/cgi-bin/go.cgi?a=b178349800057000"><img src="http://us.a1.yimg.com/us.yimg.com/a/ve/verisign/verisign1002.gif" height=60 width=468 border=0></a></td>
</tr>
<tr><td><img alt="" width=1 height=1 src="http://us.adserver.yahoo.com/l?M=212180.1660613.3195489.1269402/D=egroupmail/S=1705007183:HM/A=812075/rand=933644954"></td></tr>
</table>

<!-- |**|end egp html banner|**| -->


<br>
<tt>
To unsubscribe from this group, send an email to:<BR>
postgis-unsubscribe@yahoogroups.com<BR>
<BR>
</tt>
<br>

<br>
<tt>Your use of Yahoo! Groups is subject to the <a href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>.</tt>
</br>

</BODY></HTML>