libpq++ ... and kdevelop ... needed packageto get the database working ...

From: Peggy Go <shatz_go(at)yahoo(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: libpq++ ... and kdevelop ... needed packageto get the database working ...
Date: 2003-11-30 18:59:53
Message-ID: 20031130185953.78002.qmail@web41315.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi! I'm just new in the linux environment (specifically, REDHAT 9.0). We're currently doing our project (we use C++) which needs database. We'd like to use postgresql ++.

I've downloaded whole package of postgresql from postgresql.org , and I've downloaded pglib++ from gborg.postgresql.org. How should I go about this? Because what I did was to install postgresql-base.tar.gz then install pglib++ pqsql. I tried compiling a trial program but I received error messages like this (see below). Since these files were only downloaded from their site, I can't possibly debug this. There might be some other errors that might have caused the errors below to occur.

Im trying this using the console, but I like to proram using kdevelop. How can I link this library using kdevelop? (apparently, I'm a new kdevelop user too).

Thanks in advance!

---------------------------------------
In file included from /usr/include/pgsql/libpq++.h:30,
from dbTest.c:
/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()'
/usr/include/pgsql/libpq++/pgconnection.h:57: error: ambiguates old
declaration
`void PgConnection()'
/usr/include/pgsql/libpq++/pgconnection.h:83: error: parse error before `
private'
/usr/include/pgsql/libpq++/pgconnection.h:87: error: syntax error before `&'
token
In file included from /usr/include/pgsql/libpq++.h:31,
from DatabaseHandler.h:26,
from DatabaseHandler.cpp:18:
/usr/include/pgsql/libpq++/pgdatabase.h:37: error: syntax error before `:'
token
/usr/include/pgsql/libpq++/pgdatabase.h:45: error: destructors must be
member
functions
/usr/include/pgsql/libpq++/pgdatabase.h:51: error: non-member function `
size_type Tuples()' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:52: error: non-member function `
size_type CmdTuples()' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:54: error: non-member function
`const
char* FieldName(int)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:55: error: non-member function `int
FieldNum(const char*)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:56: error: non-member function `Oid
FieldType(int)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:57: error: non-member function `Oid
FieldType(const char*)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:58: error: non-member function `int
FieldSize(int)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:59: error: non-member function `int
FieldSize(const char*)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:60: error: non-member function
`const
char* GetValue(int, int)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:61: error: non-member function
`const
char* GetValue(int, const char*)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:62: error: non-member function `bool
GetIsNull(int, int)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:63: error: non-member function `bool
GetIsNull(int, const char*)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:64: error: non-member function `int
GetLength(int, int)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:65: error: non-member function `int
GetLength(int, const char*)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:69: error: non-member function `void
DisplayTuples(FILE*, bool, const char*, bool, bool)' cannot have `const'
method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:71: error: non-member function `void
PrintTuples(FILE*, bool, bool, bool)' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:76: error: non-member function
`const
char* OidStatus()' cannot have `const' method qualifier
/usr/include/pgsql/libpq++/pgdatabase.h:79: error: parse error before `
protected'
/usr/include/pgsql/libpq++/pgdatabase.h:88: error: syntax error before `&'
token
In file included from /usr/include/pgsql/libpq++.h:32,
from DatabaseHandler.h:26,
from DatabaseHandler.cpp:18:
/usr/include/pgsql/libpq++/pglobject.h:38: error: syntax error before `:'
token
/usr/include/pgsql/libpq++/pglobject.h:43: error: 'string' is used as a
type,
but is not defined as a type.
/usr/include/pgsql/libpq++/pglobject.h:46: error: parse error before
`public'
/usr/include/pgsql/libpq++/
I

---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Kenneth Suralta 2003-12-01 05:47:52 libpq question..
Previous Message Bruce Momjian 2003-11-30 05:54:23 Re: error while compiling libpq (borland 5.5)