Skip site navigation (1) Skip section navigation (2)

postgreSQL 7.0.3 + kdevelop 1.4.1

From: David Leal <davileal(at)terra(dot)es>
To: pgsql-novice(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org, kdevelop(at)kdevelop(dot)org
Cc: taw(at)users(dot)sourceforge(dot)net
Subject: postgreSQL 7.0.3 + kdevelop 1.4.1
Date: 2001-05-22 18:21:08
Message-ID: 01052213494806.01653@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-novice
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?


Thanks,
Davi Leal


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Responses

pgsql-novice by date

Next:From: Tomasz WegrzanowskiDate: 2001-05-22 18:41:45
Subject: Re: postgreSQL 7.0.3 + kdevelop 1.4.1
Previous:From: Giorgio A.Date: 2001-05-22 18:10:13
Subject: Re: inserting values like in mySQL

pgsql-general by date

Next:From: R TalbotDate: 2001-05-22 18:38:08
Subject: Video streams in Database
Previous:From: Craig OrsingerDate: 2001-05-22 17:50:15
Subject: Re: perl vs php for postgresql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group