[Gambas-user] help with gambas in sqlite releted compile error

Adi Spivak pchelper at ...1190...
Fri Oct 28 20:32:50 CEST 2005


hello
i need some help with a compile error i get while tring to compile 
gambas with sqlite support ( i need sqlite support for a program i want 
to use).
i use :
slackware 10.2 (i say 10.2 couse i make sure my system is up to date for 
many years now as far as developmant and requiered packages are consorned).
kde 3.4.3
kernel 2.6.13
sqlite 3.2.7
gambas 1.0.11
and compile it with the following configue:
./configure --with-sqlite-libraries=/usr/local/lib 
--with-sqlite-includes=/usr/local/include 
--with-zlib-includes=/usr/local/zlib/include 
--with-zlib-libraries=/usr/local/zlib/lib

and the error is like this:

mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share 
-I/usr/local/include -g -O2 -pipe -Wall -fno-exceptions -g -Os 
-fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c 
main.cpp  -fPIC -DPIC -o .libs/main.o
In file included from dataset.h:38,
                 from sqlitedataset.h:33,
                 from main.cpp:40:
qry_dat.h:38:20: sqlite.h: No such file or directory
In file included from dataset.h:38,
                 from sqlitedataset.h:33,
                 from main.cpp:40:
qry_dat.h:225: error: syntax error before `*' token
In file included from sqlitedataset.h:33,
                 from main.cpp:40:
dataset.h:72: warning: `class Database' has virtual functions but 
non-virtual
   destructor
dataset.h:158: warning: `class Dataset' has virtual functions but 
non-virtual
   destructor
In file included from main.cpp:40:
sqlitedataset.h:34:20: sqlite.h: No such file or directory
In file included from main.cpp:40:
sqlitedataset.h:71: error: syntax error before `*' token
sqlitedataset.h:84: error: syntax error before `*' token
sqlitedataset.h:68: warning: `class SqliteDatabase' has virtual 
functions but
   non-virtual destructor
sqlitedataset.h:86: error: extraneous `int' ignored
sqlitedataset.h:86: error: virtual outside class declaration
sqlitedataset.h:86: error: invalid return type for function `SqliteDatabase
   status()'
sqlitedataset.h:86: error:   because the following virtual functions are
   abstract:
dataset.h:117: error:   virtual int Database::setErr(int)
dataset.h:127: error:   virtual long int Database::nextid(const char*)
sqlitedataset.h:87: error: virtual outside class declaration
sqlitedataset.h:89: error: virtual outside class declaration
sqlitedataset.h:92: error: virtual outside class declaration
sqlitedataset.h:94: error: virtual outside class declaration
sqlitedataset.h:96: error: virtual outside class declaration
sqlitedataset.h:98: error: virtual outside class declaration
sqlitedataset.h:100: error: virtual outside class declaration
sqlitedataset.h:104: error: virtual outside class declaration
sqlitedataset.h:105: error: virtual outside class declaration
sqlitedataset.h:106: error: virtual outside class declaration
sqlitedataset.h: In function `bool in_transaction()':
sqlitedataset.h:108: error: `_in_transaction' undeclared (first use this
   function)
sqlitedataset.h:108: error: (Each undeclared identifier is reported only 
once
   for each function it appears in.)
sqlitedataset.h: At global scope:
sqlitedataset.h:111: error: syntax error before `}' token
sqlitedataset.h:129: error: syntax error before `*' token
sqlitedataset.h:121: warning: `class SqliteDataset' has virtual 
functions but
   non-virtual destructor
main.cpp: In function `long int db_version()':
main.cpp:546: error: `sqlite_version' undeclared (first use this function)
main.cpp: In function `void* open_database(DB_DESC*, char**)':
main.cpp:582: error: cannot allocate an object of type `SqliteDatabase'
main.cpp:582: error:   since type `SqliteDatabase' has abstract virtual
   functions
main.cpp:628: error: `sqlite_encoding' undeclared (first use this function)
main.cpp: In function `int database_create(void*, char*)':
main.cpp:1998: error: cannot declare variable `conn2' to be of type `
   SqliteDatabase'
main.cpp:1998: error:   since type `SqliteDatabase' has abstract virtual
   functions
make[5]: *** [main.lo] Error 1
make[5]: Leaving directory `/usr/src/gambas-1.0.11/src/lib/db/sqlite'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/src/gambas-1.0.11/src/lib/db'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/gambas-1.0.11/src/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/gambas-1.0.11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gambas-1.0.11'
make: *** [all] Error 2

thank you for any help i can get.
if i missed some vital system info i forgot to mention, just ask and i 
will replay.
Adi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2785 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20051028/e7b24263/attachment.bin>


More information about the User mailing list