Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > libpq question
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 3172 of 3255
Post > Topic >>

libpq question

by George.Wright@[EMAIL PROTECTED] ("Wright, George") Jul 22, 2008 at 03:00 PM

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=20=20=20=20=20=20=20=20=20=20=20=20=20=20
libpq       2.5.5       2.5.5    C++ Client Library for PostgreSQL
435.0 K=20=20=20=20=20=20=20=20=20=20=20=20=20=20
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



--=20
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 6 Posts in Topic:
Two novice questions
stafford@[EMAIL PROTECTED  2008-07-14 11:08:13 
Re: Two novice questions
sdavis2@[EMAIL PROTECTED]  2008-07-14 11:46:05 
Re: Two novice questions
tgl@[EMAIL PROTECTED] (T  2008-07-14 11:55:23 
libpq question
George.Wright@[EMAIL PROT  2008-07-22 15:00:32 
Re: libpq question
George.Wright@[EMAIL PROT  2008-07-24 07:51:13 
Re: Two novice questions
pgsql@[EMAIL PROTECTED]   2008-07-15 01:34:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 6:17:57 CDT 2008.