[postgis] Re: PostGIS 0.6 installation on Windows NT

Hisaji ONO ono96 at fa2.so-net.ne.jp
Mon Oct 22 08:02:45 PDT 2001


Hi.

>However, i
>come into the follow error when compiling postgis :
>
>In function `main':
>/usr/src/postgresql-7.1.3/contrib/postgis-
>0.6.1/loader/pgsql2shp.c:156: undefined reference to `PQconnectdb'
>/usr/src/postgresql-7.1.3/contrib/postgis-
>0.6.1/loader/pgsql2shp.c:160: undefined reference to `PQstatus'
>/usr/src/postgresql-7.1.3/contrib/postgis-
>0.6.1/loader/pgsql2shp.c:163: undefined reference to `PQerrorMessage'
>(omitting the rest)

>It seems that it may not be able to link with some kind of
>libraries ...
>can anyone tell me how can i fix the problem?

 I think it is right.

 But I dont' know how solve this. So I compiled pgsql2shp.c by directly
specified library installed path like belows and succeded.

 gcc  pgsql2shp.c dbfopen.c shpopen.c -o
pgsql2shp -O2 -Wmissing-prototypes -Wmissing-declarations -I. -L/usr/local/p
gsql/lib -lpq -I/usr/local/pgsql/include -I/usr/local/include -DFRONTEND -DS
YSCONFDIR='"/usr/local/pgsql/etc"' -L/usr/local/lib -g


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20011023/e84b7da4/attachment.html>


More information about the postgis-users mailing list