libpq question
От | Wright, George |
---|---|
Тема | libpq question |
Дата | |
Msg-id | 51548D6D5BEB57468163194A8C1A0E980161A238@MAGPTCPEXC02.na.mag-ias.net обсуждение исходный текст |
Ответ на | Re: Two novice questions (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: libpq question
|
Список | 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
В списке pgsql-novice по дате отправления: