pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stéphane Pinel <spinel@noos.fr>
Cc: pgsql-interfaces@postgresql.org
Cc: pgsql-novice@postgresql.org
Subject: Re: Libpq error: Undefined symbols ?
Date: Sat, 15 Feb 2003 16:02:45 -0500
Message-ID: <25998.1045342965@sss.pgh.pa.us> (raw)
In-Reply-To: <7F36C15A-4125-11D7-B533-000A27AFF5D2@noos.fr>
References: <7F36C15A-4125-11D7-B533-000A27AFF5D2@noos.fr>

=?ISO-8859-1?Q?St=E9phane_Pinel?= <spinel@noos.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



view thread (2+ messages)

Message-ID: <25998.1045342965@sss.pgh.pa.us>
Permalink:  ../25998.1045342965@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25998.1045342965@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, spinel@noos.fr, pgsql-novice@postgresql.org
  Subject: Re: Libpq error: Undefined symbols ?
  In-Reply-To: <25998.1045342965@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox