Re: postgreSQL 7.0.3 + kdevelop 1.4.1

From: Tomasz Wegrzanowski <taw(at)users(dot)sourceforge(dot)net>
To: David Leal <davileal(at)terra(dot)es>
Cc: pgsql-novice(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org, kdevelop(at)kdevelop(dot)org, taw(at)users(dot)sourceforge(dot)net
Subject: Re: postgreSQL 7.0.3 + kdevelop 1.4.1
Date: 2001-05-22 18:41:45
Message-ID: 20010522204145.B535@tavaiah
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

On Tue, May 22, 2001 at 07:21:08PM +0100, David Leal wrote:
> Hi all!
>
> I have some troubles trying to configure kdevelop 1.4.1 to use the postgreSQL
> 7.0.3 C++ library.
>
>
> Configuration
> ----------
>
> menu Project>Options
> Compiler Options
> additional options: -I/usr/include/pgsql/
> Linker Options
> additional libraries: -lpq++ -L/usr/lib/
>
>
> Source code
> ----------
>
> #include <libpq++.h>
> class ShopDB
> {
> public:
> ShopDB();
> ~ShopDB();
> bool open();
> bool login(char *passwd);
> const char *error();
> bool close();
> ...
>
>
> Error
> -----
>
> $ make
> make all-recursive
> make[1]: Entering directory `/home/davi/ShopSuite_Project/ShopSuite/XXX'
> Making all in salepoint
> make[2]: Entering directory
> `/home/davi/ShopSuite_Project/ShopSuite/XXX/salepoint'
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/lib/qt2/include
> -I/usr/X11R6/include -O2 -fno-exceptions -fno-check-new -Wall -pedantic
> -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long
> -Wnon-virtual-dtor -fno-builtin -O0 -g3 -Wall -I/usr/include/pgsql/ -c
> shopDB.cpp
> In file included from /usr/include/pgsql/libpq++.h:27,
> from shopDB.h:22,
> from shopDB.cpp:18:
> /usr/include/pgsql/libpq++/pgconnection.h:84: syntax error before `('
> In file included from /usr/include/pgsql/libpq++.h:29,
> from shopDB.h:22,
> from shopDB.cpp:18:
> /usr/include/pgsql/libpq++/pglobject.h:36: syntax error before `;'
> /usr/include/pgsql/libpq++/pglobject.h:55: syntax error before `('
> In file included from /usr/include/pgsql/libpq++.h:31,
> from shopDB.h:22,
> from shopDB.cpp:18:
> /usr/include/pgsql/libpq++/pgcursordb.h:47: parse error before `&'
> /usr/include/pgsql/libpq++/pgcursordb.h:54: parse error before `&'
> /usr/include/pgsql/libpq++/pgcursordb.h:57: parse error before `&'
> /usr/include/pgsql/libpq++/pgcursordb.h:60: syntax error before `;'
> /usr/include/pgsql/libpq++/pgcursordb.h: In method `const char
> *PgCursor::Cursor () const':
> /usr/include/pgsql/libpq++/pgcursordb.h:53: `pgCursor' undeclared (first use
> this function)
> /usr/include/pgsql/libpq++/pgcursordb.h:53: (Each undeclared identifier is
> reported only once for each
> function it appears in.)
> /usr/include/pgsql/libpq++/pgcursordb.h: In method `void PgCursor::Cursor
> (...)':
> /usr/include/pgsql/libpq++/pgcursordb.h:54: `cursor' undeclared (first use
> this function)
> shopDB.cpp: In method `bool ShopDB::transaction_set_notes (char *)':
> shopDB.cpp:95: warning: unused parameter `char *text'
> shopDB.cpp: In method `bool ShopDB::sell (char *, int)':
> shopDB.cpp:100: warning: unused parameter `char *prod'
> shopDB.cpp:100: warning: unused parameter `int units'
> make[2]: *** [shopDB.o] Error 1
> make[2]: Leaving directory
> `/home/davi/ShopSuite_Project/ShopSuite/XXX/salepoint'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/davi/ShopSuite_Project/ShopSuite/XXX'
> make: *** [all-recursive-am] Error 2
> $
>
>
> If somebody knows how to configure it, could reply some tips?

It is also a problem with postgres 7.1.1-1 (debian package).

The problem is that libpq++ headers have own config.h and it clashes
with config.h made by autoconf.

It's bug in postgresql and has nothing to do with kdevelop.
Should I make formal bug report for postgres or are some postgres developers
reading it anyway ?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2001-05-22 19:04:42 Re: I want more Money (the data type, of course! :-))
Previous Message R Talbot 2001-05-22 18:38:08 Video streams in Database

Browse pgsql-novice by date

  From Date Subject
Next Message ffrt 2001-05-22 18:45:01 PostgreSQL and programming languages
Previous Message David Leal 2001-05-22 18:21:08 postgreSQL 7.0.3 + kdevelop 1.4.1