Skip site navigation (1) Skip section navigation (2)

Getting started with libpq++

From: "Paul S(dot) Ganney" <paul(dot)ganney(at)dial(dot)pipex(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Getting started with libpq++
Date: 1999-11-22 11:39:14
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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 `

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



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

pgsql-interfaces by date

Next:From: Lamar OwenDate: 1999-11-22 16:30:02
Subject: Re: [INTERFACES] pg_pwd
Previous:From: Pablo Saul Salazar - CESERCOMPDate: 1999-11-22 10:20:20
Subject: Re: [INTERFACES] table very big !!!!!

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group