X-Original-To: pgsql-interfaces@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BBE624758F1; Sat, 15 Feb 2003 16:02:46 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 0E33F474E61; Sat, 15 Feb 2003 16:02:46 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h1FL2j5u025999; Sat, 15 Feb 2003 16:02:45 -0500 (EST) To: =?ISO-8859-1?Q?St=E9phane_Pinel?= Cc: pgsql-interfaces@postgresql.org, pgsql-novice@postgresql.org Subject: Re: Libpq error: Undefined symbols ? In-reply-to: <7F36C15A-4125-11D7-B533-000A27AFF5D2@noos.fr> References: <7F36C15A-4125-11D7-B533-000A27AFF5D2@noos.fr> Comments: In-reply-to =?ISO-8859-1?Q?St=E9phane_Pinel?= message dated "Sat, 15 Feb 2003 21:38:53 +0100" Date: Sat, 15 Feb 2003 16:02:45 -0500 Message-ID: <25998.1045342965@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/59 X-Sequence-Number: 3680 =?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