X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C1541D1D58D for ; Sun, 30 Nov 2003 19:00:25 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 70846-06 for ; Sun, 30 Nov 2003 14:59:55 -0400 (AST) Received: from web41315.mail.yahoo.com (web41315.mail.yahoo.com [66.218.93.64]) by svr1.postgresql.org (Postfix) with SMTP id CCE11D1D394 for ; Sun, 30 Nov 2003 14:59:53 -0400 (AST) Message-ID: <20031130185953.78002.qmail@web41315.mail.yahoo.com> Received: from [202.81.188.234] by web41315.mail.yahoo.com via HTTP; Sun, 30 Nov 2003 10:59:53 PST Date: Sun, 30 Nov 2003 10:59:53 -0800 (PST) From: Peggy Go Subject: libpq++ ... and kdevelop ... needed packageto get the database working ... To: pgsql-interfaces@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-14822334-1070218793=:77807" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/50 X-Sequence-Number: 4608 --0-14822334-1070218793=:77807 Content-Type: text/plain; charset=us-ascii 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 --0-14822334-1070218793=:77807 Content-Type: text/html; charset=us-ascii
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()' ca nnot 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' meth od 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, c onst 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 --0-14822334-1070218793=:77807--