Re: Libpq error: Undefined symbols ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stéphane Pinel <spinel(at)noos(dot)fr>
Cc: pgsql-interfaces(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: Libpq error: Undefined symbols ?
Date: 2003-02-15 21:02:45
Message-ID: 25998.1045342965@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-novice

=?ISO-8859-1?Q?St=E9phane_Pinel?= <spinel(at)noos(dot)fr> 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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Stéphane Pinel 2003-02-16 19:06:03 ibpq: illegal reference to symbol: _BIO_free
Previous Message Stéphane Pinel 2003-02-15 20:38:53 Libpq error: Undefined symbols ?

Browse pgsql-novice by date

  From Date Subject
Next Message ninja 2003-02-16 12:39:39 base36 sequence
Previous Message Stéphane Pinel 2003-02-15 20:38:53 Libpq error: Undefined symbols ?