From steff33@ifrance.com Thu Mar 15 06:36:50 2001 Received: from mail.arianeii.be (cronos.arianeii.be [195.74.199.142]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f2F6aox42949 for ; Thu, 15 Mar 2001 01:36:50 -0500 (EST) (envelope-from steff33@ifrance.com) Received: (qmail 20508 invoked from network); 15 Mar 2001 07:51:13 -0000 Received: from ws06.arianeii.be (HELO herakles) (195.74.199.134) by 172.17.0.3 with SMTP; 15 Mar 2001 07:51:13 -0000 Message-ID: <007b01c0ad1b$1be5ef70$1001000a@arianeii.com> From: =?iso-8859-1?Q?St=E9phane_EVEILLARD?= To: Subject: Big trouble with libpq++ Date: Thu, 15 Mar 2001 07:42:04 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0078_01C0AD23.6E256920" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200103/127 X-Sequence-Number: 1288 This is a multi-part message in MIME format. ------=_NextPart_000_0078_01C0AD23.6E256920 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, Using kdevelop (which uses g++), I got the following message when linking error in pgconnection.cc PgEXEC not defined. and I ve got the same message for a few others fonctions Can somebody help me ?? (I'm using Postgresql 7.0.3) Thanks in advance Stephane ------=_NextPart_000_0078_01C0AD23.6E256920 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,

Using kdevelop (which uses g++), I got the following= =20 message when linking

error in pgconnection.cc PgEXEC not=20 defined.
 
and I ve got the same message for a few ot= hers=20 fonctions

Can somebody help me ??

(I'm using Postgresql=20 7.0.3)

Thanks in advance

Stephane
------=_NextPart_000_0078_01C0AD23.6E256920-- From jtv@cistron-office.nl Thu Mar 15 12:07:25 2001 Received: from smtp.cistron-office.nl (10fwd.cistron-office.nl [195.64.65.197]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2FC7Ox94424 for ; Thu, 15 Mar 2001 07:07:25 -0500 (EST) (envelope-from jtv@cistron-office.nl) Received: from slipstream.cistron-office.nl ([195.64.65.252]) by smtp.cistron-office.nl with smtp (Exim 3.22 #1 (Debian)) id 14dWXB-0000ZR-00; Thu, 15 Mar 2001 13:07:13 +0100 Received: by slipstream.cistron-office.nl (sSMTP sendmail emulation); Thu, 15 Mar 2001 13:07:13 +0100 From: "J. T. Vermeulen" Date: Thu, 15 Mar 2001 13:07:13 +0100 To: =?iso-8859-1?Q?St=E9phane?= EVEILLARD Cc: pgsql-interfaces@postgresql.org Subject: Re: Big trouble with libpq++ Message-ID: <20010315130713.C6118@cistron.nl> Mail-Followup-To: =?iso-8859-1?Q?St=E9phane?= EVEILLARD , pgsql-interfaces@postgresql.org References: <007b01c0ad1b$1be5ef70$1001000a@arianeii.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.3.15i In-Reply-To: <007b01c0ad1b$1be5ef70$1001000a@arianeii.com>; from steff33@ifrance.com on Thu, Mar 15, 2001 at 07:42:04AM +0100 X-Disclaimer: Include standard disclaimer here. X-Archive-Number: 200103/130 X-Sequence-Number: 1291 On Thu, 15 Mar 2001, Stéphane EVEILLARD wrote: > Using kdevelop (which uses g++), I got the following message when linking > > error in pgconnection.cc PgEXEC not defined. Do you mean PQexec? In that case it looks like libpq (the C frontend) isn't being linked in properly. Are you linking statically or dynamically? Jeroen From jtv@cistron-office.nl Thu Mar 15 12:34:41 2001 Received: from smtp.cistron-office.nl (10fwd.cistron-office.nl [195.64.65.197]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2FCYfx97425 for ; Thu, 15 Mar 2001 07:34:41 -0500 (EST) (envelope-from jtv@cistron-office.nl) Received: from slipstream.cistron-office.nl ([195.64.65.252]) by smtp.cistron-office.nl with smtp (Exim 3.22 #1 (Debian)) id 14dWxc-0001HB-00; Thu, 15 Mar 2001 13:34:32 +0100 Received: by slipstream.cistron-office.nl (sSMTP sendmail emulation); Thu, 15 Mar 2001 13:34:32 +0100 From: "J. T. Vermeulen" Date: Thu, 15 Mar 2001 13:34:32 +0100 To: =?iso-8859-1?Q?St=E9phane?= EVEILLARD Cc: "J. T. Vermeulen" , pgsql-interfaces@postgresql.org Subject: Re: Big trouble with libpq++ Message-ID: <20010315133432.E6118@cistron.nl> Mail-Followup-To: =?iso-8859-1?Q?St=E9phane?= EVEILLARD , "J. T. Vermeulen" , pgsql-interfaces@postgresql.org References: <007b01c0ad1b$1be5ef70$1001000a@arianeii.com> <20010315130713.C6118@cistron.nl> <008e01c0ad4c$c05aa6a0$1001000a@arianeii.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.3.15i In-Reply-To: <008e01c0ad4c$c05aa6a0$1001000a@arianeii.com>; from steff33@ifrance.com on Thu, Mar 15, 2001 at 01:37:26PM +0100 X-Disclaimer: Include standard disclaimer here. X-Archive-Number: 200103/132 X-Sequence-Number: 1293 On Thu, 15 Mar 2001, Stéphane EVEILLARD wrote: > Sorry, I mean PQexec and I am linking statically . Okay, that makes things a little easier. It appears that the Makefile doesn't do much to account for static linking; the only dependency on libpq that is specified is through SHLIB_LINK which AFAIK is meant for dynamic libs only. You should be able to solve this either by linking dynamically, or if you want to stick with the static version, to link with libpq as well as libpq++. HTH! Jeroen From steff33@ifrance.com Thu Mar 15 12:32:08 2001 Received: from mail.arianeii.be (cronos.arianeii.be [195.74.199.142]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f2FCW7x97230 for ; Thu, 15 Mar 2001 07:32:08 -0500 (EST) (envelope-from steff33@ifrance.com) Received: (qmail 24459 invoked from network); 15 Mar 2001 13:46:27 -0000 Received: from ws06.arianeii.be (HELO herakles) (195.74.199.134) by 172.17.0.3 with SMTP; 15 Mar 2001 13:46:27 -0000 Message-ID: <008e01c0ad4c$c05aa6a0$1001000a@arianeii.com> From: =?iso-8859-1?Q?St=E9phane_EVEILLARD?= To: "J. T. Vermeulen" Cc: References: <007b01c0ad1b$1be5ef70$1001000a@arianeii.com> <20010315130713.C6118@cistron.nl> Subject: Re: Big trouble with libpq++ Date: Thu, 15 Mar 2001 13:37:26 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200103/131 X-Sequence-Number: 1292 Sorry, I mean PQexec and I am linking statically . Stephane ----- Original Message ----- From: "J. T. Vermeulen" To: "Stéphane EVEILLARD" Cc: Sent: Thursday, March 15, 2001 1:07 PM Subject: Re: [INTERFACES] Big trouble with libpq++ On Thu, 15 Mar 2001, Stéphane EVEILLARD wrote: > Using kdevelop (which uses g++), I got the following message when linking > > error in pgconnection.cc PgEXEC not defined. Do you mean PQexec? In that case it looks like libpq (the C frontend) isn't being linked in properly. Are you linking statically or dynamically? Jeroen ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://www.postgresql.org/search.mpl From tgl@sss.pgh.pa.us Thu Mar 15 15:50:37 2001 Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2FFobx21306 for ; Thu, 15 Mar 2001 10:50:37 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f2FFoCt13835; Thu, 15 Mar 2001 10:50:13 -0500 (EST) To: "J. T. Vermeulen" cc: =?iso-8859-1?Q?St=E9phane?= EVEILLARD , pgsql-interfaces@postgresql.org Subject: Re: Big trouble with libpq++ In-reply-to: <20010315133432.E6118@cistron.nl> References: <007b01c0ad1b$1be5ef70$1001000a@arianeii.com> <20010315130713.C6118@cistron.nl> <008e01c0ad4c$c05aa6a0$1001000a@arianeii.com> <20010315133432.E6118@cistron.nl> Comments: In-reply-to "J. T. Vermeulen" message dated "Thu, 15 Mar 2001 13:34:32 +0100" Date: Thu, 15 Mar 2001 10:50:12 -0500 Message-ID: <13832.984671412@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200103/135 X-Sequence-Number: 1296 "J. T. Vermeulen" writes: > You should be able to solve this either by linking dynamically, or if you > want to stick with the static version, to link with libpq as well as libpq++. Yes, for a static link you should say -lpq++ -lpq not only -lpq++. Actually, I'd tend to do that for a dynamic link too... can't hurt. regards, tom lane