Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-interfacespgsql-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

pgsql-novice by date

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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group