Re: [HACKERS] Libpq++ and RH5.1 - Mailing list pgsql-hackers

From Maarten Boekhold
Subject Re: [HACKERS] Libpq++ and RH5.1
Date
Msg-id Pine.SUN.3.91.980612094619.11292E-100000@dutepp0.et.tudelft.nl
Whole thread Raw
In response to Libpq++ and RH5.1  (Sidney Traynham <traynham@wsp1.websp.com>)
List pgsql-hackers
On Thu, 11 Jun 1998, Sidney Traynham wrote:

> I am trying to use Libpq++ for PG6.3.2 and Red Hat 5.1, and am having
> trouble
> compiling programs that use it.  I tried #include <libpq++.h> and didn't
> link
> and libpq dirs and I got some linker errors (not able to find such and
> such
> functions), then I tried linking the way I used to with just plain old
> libpq,
> but to avail.  Everyone says that libpq is better, but I like the C++
> interface better, and want to try to get that to work.
>
> If anyone has had any luck with libpq++ in general and could send me the
> basics on what command line options I need to use to compile and what
> header
> files to include I would greatly appreciate it.

IIRC you have to include both libpq++.h as well as libpq-fe.h, and you'll
have to link with -lpq -lpq++ and possibly with -lcrypt

Maarten

_____________________________________________________________________________
| TU Delft, The Netherlands, Faculty of Information Technology and Systems  |
|                   Department of Electrical Engineering                    |
|           Computer Architecture and Digital Technique section             |
|                          M.Boekhold@et.tudelft.nl                         |
-----------------------------------------------------------------------------


pgsql-hackers by date:

Previous
From: Andreas Zeugswetter
Date:
Subject: AW: [HACKERS] now 6.4
Next
From: Vadim Mikheev
Date:
Subject: Re: AW: [HACKERS] now 6.4