Libpq error: Undefined symbols ?

Поиск
Список
Период
Сортировка
Искать

Libpq error: Undefined symbols ?

От:
Stéphane Pinel <spinel@noos.fr>
Дата:
Trying to compile one of the libpq sample from the postgresql website,
I get this error :

"ld: Undefined symbols:
_PQclear
_PQerrorMessage
_PQexec
_PQfinish
_PQfname
_PQgetvalue
_PQnfields
_PQntuples
_PQresultStatus
_PQsetdbLogin
_PQstatus"

I can't figure out why ?

MacOS X 10.2.4
PostgreSQL 7.3

Thanks

------------------------------------------------------------------------ 
---
Stéphane
iChat/AIM: s.pinel
------------------------------------------------------------------------ 
---

Re: Libpq error: Undefined symbols ?

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
=?ISO-8859-1?Q?St=E9phane_Pinel?=  writes:
> Trying to compile one of the libpq sample from the postgresql website,
> I get this error :

> "ld: Undefined symbols:
> _PQclear
> _PQerrorMessage

Looks like you forgot to link in libpq (-lpq on the command line that
produces the executable; you may also need -L to point to the directory
containing the library file).

			regards, tom lane
FAQ