pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Randall W. Barrett <rbarr@shadow.net>
To: Alexey V. Meledin <cureman@pia.ru>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Question about libpq++
Date: Wed, 27 Jan 1999 09:57:15 -0500 (EST)
Message-ID: <Pine.SOL.3.96.990127095559.22084A-100000@viper> (raw)
In-Reply-To: <6733.990127@pia.ru>

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
> 
> 
> 
> 




view thread (3+ messages)  latest in thread

Message-ID: <Pine.SOL.3.96.990127095559.22084A-100000@viper>
Permalink:  ../Pine.SOL.3.96.990127095559.22084A-100000@viper/
Also on:    postgresql.org/message-id/Pine.SOL.3.96.990127095559.22084A-100000@viper

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-interfaces@postgresql.org
  Cc: rbarr@shadow.net, cureman@pia.ru
  Subject: Re: [INTERFACES] Question about libpq++
  In-Reply-To: <Pine.SOL.3.96.990127095559.22084A-100000@viper>
  References: <6733.990127@pia.ru> <Pine.SOL.3.96.990127095559.22084A-100000@viper>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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