pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Getting started with libpq++
2+ messages / 1 participants
[nested] [flat]

* Getting started with libpq++
@ 1999-11-11 09:47  Paul S. Ganney <paul.ganney@dial.pipex.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Paul S. Ganney @ 1999-11-11 09:47 UTC (permalink / raw)
  To: pgsql-interfaces

I'm an experienceed C++ programmer (but not that experienceed in the 
Linux environment) and I'm trying to use libpq++ under Redhat Linux 5.0.

As a previous archived post mentioned (but I couldn't follow the thread 
to a reply), man mentions sample files but they're not there. I've 
downloaded postgresql-6.5.3.tar.gz, gunzip-ed it, and can't get tar to 
list the files (using tar -t or tar --list) so I can then extract only 
the samples.

When I try to compile a simple program:
#include <libpq++.h>
#include <stdlib.h>

void main()
{
PgDatabase data("cpd");
}

I get lots of messages along the lines of
/tmp/cca121441.o: In function `PgDatabase::~PgDatabase(void)':
/tmp/cca121441.o(.gnu.linkonce.t._._10PgDatabase+0x15): undefined 
reference to `
PgConnection::~PgConnection(void)'

I've tried g++ with -lpq, but nothing changes. I've even tried explicitly 
#including pgconnection.h, but to no avail.

So, I guess this isn't a particuarly tricky one to those with libpq++ 
running fine, but it's a massive holdup to me. Any help gratefully 
received.

Thanks

Paul.
-- 
-------------------------------------------
Expressed opinions are usually my own.
Especially if they're any good (of course).
-------------------------------------------




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Getting started with libpq++
@ 1999-11-22 11:39  Paul S. Ganney <paul.ganney@dial.pipex.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Paul S. Ganney @ 1999-11-22 11:39 UTC (permalink / raw)
  To: pgsql-interfaces

I'm an experienceed C++ programmer (but not that experienceed in the
Linux environment) and I'm trying to use libpq++ under Redhat Linux 5.0.

As a previous archived post mentioned (but I couldn't follow the thread
to a reply), man mentions sample files but they're not there. I've
downloaded postgresql-6.5.3.tar.gz, gunzip-ed it, and can't get tar to
list the files (using tar -t or tar --list) so I can then extract only
the samples.

When I try to compile a simple program:
#include <libpq++.h>
#include <stdlib.h>

void main()
{
PgDatabase data("cpd");
}

I get lots of messages along the lines of
/tmp/cca121441.o: In function `PgDatabase::~PgDatabase(void)':
/tmp/cca121441.o(.gnu.linkonce.t._._10PgDatabase+0x15): undefined
reference to `
PgConnection::~PgConnection(void)'

I've tried g++ with -lpq, but nothing changes. I've even tried explicitly
#including pgconnection.h, but to no avail.

So, I guess this isn't a particuarly tricky one to those with libpq++
running fine, but it's a massive holdup to me. Any help gratefully
received.

Thanks

Paul.

-- 
-------------------------------------------
Expressed opinions are usually my own.
Especially if they're any good (of course).
-------------------------------------------





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1999-11-22 11:39 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-11-11 09:47 Getting started with libpq++ Paul S. Ganney <paul.ganney@dial.pipex.com>
1999-11-22 11:39 Getting started with libpq++ Paul S. Ganney <paul.ganney@dial.pipex.com>

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