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 > Re: libpq quest...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 3172 of 3323
Post > Topic >>

Re: libpq question

by George.Wright@[EMAIL PROTECTED] ("Wright, George") Jul 24, 2008 at 07:51 AM

I cannot seem to build C++ code that uses the libpq++.h header file.

Including the file in my C++ code generates errors

Command line:
dev:/test # g++ -Wall -g -I. -I/usr/include/pgsql -c client.cpp

Errors.
/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


Line 48 of pgconnection.h
class DLLIM****T PgConnection


Since DLLIM****T is defined as nothing on my system in the file c.h, is
the problem that somehow it doesn't understand the use of the word
'class' as if it's trying to interpret it as C and not C++? Or is it
something else?

Any ideas?


--=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 Fri Dec 5 5:44:41 CST 2008.