pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedQuestion about libpq++
3+ messages / 3 participants
[nested] [flat]
* Question about libpq++
@ 1999-01-27 14:36 Alexey V. Meledin <cureman@pia.ru>
0 siblings, 2 replies; 3+ messages in thread
From: Alexey V. Meledin @ 1999-01-27 14:36 UTC (permalink / raw)
To: pgsql-interfaces
I've installed pgsql 6.4.2
It includes libpq++
I've tried to play with it...
Simply
#include <stdlib.h>
#include <libpq++.h>
int main(void)
{
PgEnv a;
a.SetEnv(NULL,NULL,NULL,NULL,NULL);
return 0;
}
during compilation with "g++ -o pgsetenv pgsetenv.cpp
-I/usr/local/pgsql/include" I've got an error message:
/var/tmp/ccxg22111.o: Undefined symbol `___5PgEnv' referenced from text segment
....
What to do?
thanks,
Q
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [INTERFACES] Question about libpq++
@ 1999-01-27 14:57 Randall W. Barrett <rbarr@shadow.net>
parent: Alexey V. Meledin <cureman@pia.ru>
1 sibling, 0 replies; 3+ messages in thread
From: Randall W. Barrett @ 1999-01-27 14:57 UTC (permalink / raw)
To: Alexey V. Meledin <cureman@pia.ru>; +Cc: pgsql-interfaces
Alexey,
It appears you've forgotten to link in the libpq++ library with a -l on
the command line. You may also need a -L to tell the compiler where to
find the library.
Randy Barrett
On Wed, 27 Jan 1999, Alexey V. Meledin wrote:
> I've installed pgsql 6.4.2
> It includes libpq++
> I've tried to play with it...
> Simply
> #include <stdlib.h>
> #include <libpq++.h>
> int main(void)
> {
> PgEnv a;
> a.SetEnv(NULL,NULL,NULL,NULL,NULL);
> return 0;
> }
>
> during compilation with "g++ -o pgsetenv pgsetenv.cpp
> -I/usr/local/pgsql/include" I've got an error message:
> /var/tmp/ccxg22111.o: Undefined symbol `___5PgEnv' referenced from text segment
> ....
>
> What to do?
>
> thanks,
> Q
>
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [INTERFACES] Question about libpq++
@ 1999-01-27 15:32 Ralf Berger <Ralf.Berger@ipk.fhg.de>
parent: Alexey V. Meledin <cureman@pia.ru>
1 sibling, 0 replies; 3+ messages in thread
From: Ralf Berger @ 1999-01-27 15:32 UTC (permalink / raw)
To: Alexey V. Meledin <cureman@pia.ru>; +Cc: pgsql-interfaces
"Alexey V. Meledin" wrote:
>
> I've installed pgsql 6.4.2
> It includes libpq++
> I've tried to play with it...
> Simply
> #include <stdlib.h>
> #include <libpq++.h>
> int main(void)
> {
> PgEnv a;
> a.SetEnv(NULL,NULL,NULL,NULL,NULL);
> return 0;
> }
>
> during compilation with "g++ -o pgsetenv pgsetenv.cpp
> -I/usr/local/pgsql/include" I've got an error message:
> /var/tmp/ccxg22111.o: Undefined symbol `___5PgEnv' referenced from text segment
> ....
>
> What to do?
>
> thanks,
> Q
Sound's like a link problem to me. The linker say's that he
can not find theses symbol.
Perhaps you add the options "-L/usr/local/pgsql/lib -lpg -lpg++" to
your linker options.
Hope that helps.
Ralf
--
Fraunhofer IPK
Dipl.-Inform. Ralf Berger
Pascalstr. 8-9
10587 Berlin
Tel.: ++49-(0)30 390 06 129
Fax.: ++49-(0)30 391 10 37
---
In anything at all, perfection is finally attained not when
there is no longer anything to add, but when there is
no longer anything to take away.
Antoine de Saint Exupery
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~1999-01-27 15:32 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-01-27 14:36 Question about libpq++ Alexey V. Meledin <cureman@pia.ru>
1999-01-27 14:57 ` Randall W. Barrett <rbarr@shadow.net>
1999-01-27 15:32 ` Ralf Berger <Ralf.Berger@ipk.fhg.de>
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