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

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

From
Peggy Go
Date:
 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 messag e (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

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

From
Peter Eisentraut
Date:
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   peter_e@gmx.net