Re: [INTERFACES] Question about libpq++

From: Ralf Berger <Ralf(dot)Berger(at)ipk(dot)fhg(dot)de>
To: "Alexey V(dot) Meledin" <cureman(at)pia(dot)ru>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Question about libpq++
Date: 1999-01-27 15:32:26
Message-ID: 36AF318A.716936CA@ipk.fhg.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Byron Nikolaidis 1999-01-27 15:59:53 Re: [INTERFACES] Use Declare/Fetch option
Previous Message Randall W. Barrett 1999-01-27 14:57:15 Re: [INTERFACES] Question about libpq++