By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,708 Members | 2,055 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,708 IT Pros & Developers. It's quick & easy.

I need your help. I'm confused with the files ...

P: n/a
Hi! I've downloaded postgreqsql-base-7.2.4.tar.gz but it says in the
readme file that

"This distribution also contains several language bindings, including
C, Perl, Python, and Tcl, as well as a JDBC driver.

The ODBC and C++ interfaces have been moved to the PostgreSQL
Projects Web Site at http://gborg.postgresql.org for separate
maintenance. "

From what I've read, it meant that if I downloaded
postgreqsql-base-7.2.4.tar.gz, it won't work for C++ unless I
download libpq++-4.0. Is there a package that already contatins
libpq++-4.0 ? Actually I've already installed
postgreqsql-base-7.2.4.tar.gz (performed gmake, install, etc) then I
installed libpq++ inside the folder. I tried compiling a sample file
but then I received this message (below). I won't be able to debug
this since the error points to the actual heade files that were
provided by libpq++. I think there are other errors which caused the
errors below to come out. It might be I've done something wrong inthe
installation. HOpe you could help. I really need to get this wokring
within the wk.. Thanks a lot!! :) :)

--------------------------------

/usr/include/pgsql/libpq++/pgconnection.h:49: error: syntax error
before `{'
token
/usr/include/pgsql/libpq++/pgconnection.h:55: error: parse error
before
`public
'
/usr/include/pgsql/libpq++/pgconnection.h:57: error: destructors must
be
member
functions
/usr/include/pgsql/libpq++/pgconnection.h:57: error: virtual outside
class
declaration
/usr/include/pgsql/libpq++/pgconnection.h:60: error: non-member
function `
ConnStatusType Status()' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgconnection.h:61: error: non-member
function
`bool
ConnectionBad()' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgconnection.h:62: error: non-member
function
`const
char* ErrorMessage()' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgconnection.h:65: error: non-member
function
`const
char* DBName()' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgconnection.h:76: error: parse error
before `
protected'
/usr/include/pgsql/libpq++/pgconnection.h:79: error: syntax error
before `('
token
/usr/include/pgsql/libpq++/pgconnection.h:81: error: ISO C++ forbids
declaration of `PgConnection' with no type
/usr/include/pgsql/libpq++/pgconnection.h:81: error: new declaration
`int
PgConnection()'
........

---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Peggy Go writes:
Hi! I've downloaded postgreqsql-base-7.2.4.tar.gz but it says in the
readme file that


Why are you bothering with old versions? Download 7.4, or at least 7.3.4
if you don't want to live on the cutting edge.

--
Peter Eisentraut pe*****@gmx.net
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.