pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedBig trouble with libpq++
5+ messages / 3 participants
[nested] [flat]
* Big trouble with libpq++
@ 2001-03-15 06:42 Stéphane EVEILLARD <steff33@ifrance.com>
0 siblings, 1 reply; 5+ messages in thread
From: Stéphane EVEILLARD @ 2001-03-15 06:42 UTC (permalink / raw)
To: pgsql-interfaces
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Big trouble with libpq++
@ 2001-03-15 12:07 J. T. Vermeulen <jtv@cistron-office.nl>
parent: Stéphane EVEILLARD <steff33@ifrance.com>
0 siblings, 1 reply; 5+ messages in thread
From: J. T. Vermeulen @ 2001-03-15 12:07 UTC (permalink / raw)
To: Stéphane EVEILLARD <steff33@ifrance.com>; +Cc: pgsql-interfaces
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Big trouble with libpq++
@ 2001-03-15 12:34 J. T. Vermeulen <jtv@cistron-office.nl>
parent: Stéphane EVEILLARD <steff33@ifrance.com>
0 siblings, 1 reply; 5+ messages in thread
From: J. T. Vermeulen @ 2001-03-15 12:34 UTC (permalink / raw)
To: Stéphane EVEILLARD <steff33@ifrance.com>; +Cc: J. T. Vermeulen <jtv@cistron-office.nl>; pgsql-interfaces
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Big trouble with libpq++
@ 2001-03-15 12:37 Stéphane EVEILLARD <steff33@ifrance.com>
parent: J. T. Vermeulen <jtv@cistron-office.nl>
0 siblings, 1 reply; 5+ messages in thread
From: Stéphane EVEILLARD @ 2001-03-15 12:37 UTC (permalink / raw)
To: J. T. Vermeulen <jtv@cistron-office.nl>; +Cc: pgsql-interfaces
Sorry, I mean PQexec and I am linking statically .
Stephane
----- Original Message -----
From: "J. T. Vermeulen" <jtv@cistron-office.nl>
To: "Stéphane EVEILLARD" <steff33@ifrance.com>
Cc: <pgsql-interfaces@postgresql.org>
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Big trouble with libpq++
@ 2001-03-15 15:50 Tom Lane <tgl@sss.pgh.pa.us>
parent: J. T. Vermeulen <jtv@cistron-office.nl>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2001-03-15 15:50 UTC (permalink / raw)
To: J. T. Vermeulen <jtv@cistron-office.nl>; +Cc: Stéphane EVEILLARD <steff33@ifrance.com>; pgsql-interfaces
"J. T. Vermeulen" <jtv@cistron-office.nl> 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
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2001-03-15 15:50 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-15 06:42 Big trouble with libpq++ Stéphane EVEILLARD <steff33@ifrance.com>
2001-03-15 12:07 ` J. T. Vermeulen <jtv@cistron-office.nl>
2001-03-15 12:37 ` Stéphane EVEILLARD <steff33@ifrance.com>
2001-03-15 12:34 ` J. T. Vermeulen <jtv@cistron-office.nl>
2001-03-15 15:50 ` Tom Lane <tgl@sss.pgh.pa.us>
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