From: | "Wright, George" <George(dot)Wright(at)infimatic(dot)com> |
---|---|
To: | <pgsql-novice(at)postgresql(dot)org> |
Subject: | libpq question |
Date: | 2008-07-22 20:00:32 |
Message-ID: | 51548D6D5BEB57468163194A8C1A0E980161A238@MAGPTCPEXC02.na.mag-ias.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
I seem to be unable to compile a simple C++ file to access Postgresql
from what I believe are the C interfaces in the libpq (++) package.
(Suse 10.2, PostgreSQL 8.1.5)
I get the following errors (I searched the entire drive for libpq-fe.h
and it doesn't exist after installing all the libpq packages. Do I need
something else?
I installed all the libpq packages from the distribution CD:
Name Avail. Vers.Inst. Vers.Summary Size
libpq++ 4.0 4.0 C++ Client Library for PostgreSQL
100.0 K
libpq 2.5.5 2.5.5 C++ Client Library for PostgreSQL
435.0 K
libpq-devel 2.5.5 2.5.5 C++ Client Library for PostgreSQL
5.0 M
Compile Error:
g++ -I /usr/include/pgsql -c client.cpp
In file included from /usr/include/pgsql/libpq++.h:30,
from client.cpp:9:
/usr/include/pgsql/libpq++/pgconnection.h:30:22: error: libpq-fe.h: No
such file or directory
/usr/include/pgsql/libpq++/pgconnection.h:48: error: invalid function
declaration
/usr/include/pgsql/libpq++/pgdatabase.h:37: error: invalid function
declaration
/usr/include/pgsql/libpq++/pglobject.h:38: error: invalid function
declaration
/usr/include/pgsql/libpq++/pgtransdb.h:38: error: invalid function
declaration
/usr/include/pgsql/libpq++/pgcursordb.h:44: error: invalid function
declaration
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel T. Staal | 2008-07-24 01:36:58 | Re: Character set conversion |
Previous Message | Tom Lane | 2008-07-21 14:16:40 | Re: Character set conversion |