Hi!
I would like to include the preprocessed C files in my wxWindows
project. As wxWindows is C++ only, I am forced to use the c++ compiler
in DevCpp (Windows 2000). My problem is while Sqlite compiles with the c
compiler, it does not with c++ compiler. The main problems are:
1) comparision between signed and unsigned (fe int and return of
sizeof() calls), I could fix this
2) invalid conversion from void* to any_type* in sqliteMalloc and
friends, could fix this as well
3) which is a bit cryptic for me, and can not fix:
1446 btree_rb.c: redefinition of `BtOps sqliteRbtreeOps'
38 btree_rb.c: `BtOps sqliteRbtreeOps' previously declared here
...and the like.
My question is, what should I do to avoid this error? Line 38 is:
static BtOps sqliteRbtreeOps;
and from line 1446:
static BtOps sqliteRbtreeOps = {
(int(*)(Btree*)) memRbtreeClose,
(int(*)(Btree*,int)) memRbtreeSetCacheSize,
(int(*)(Btree*,int)) memRbtreeSetSafetyLevel,
(int(*)(Btree*)) memRbtreeBeginTrans,
(int(*)(Btree*)) memRbtreeCommit,
(int(*)(Btree*)) memRbtreeRollback,
(int(*)(Btree*)) memRbtreeBeginCkpt,
(int(*)(Btree*)) memRbtreeCommitCkpt,
(int(*)(Btree*)) memRbtreeRollbackCkpt,
(int(*)(Btree*,int*)) memRbtreeCreateTable,
(int(*)(Btree*,int*)) memRbtreeCreateTable,
(int(*)(Btree*,int)) memRbtreeDropTable,
(int(*)(Btree*,int)) memRbtreeClearTable,
(int(*)(Btree*,int,int,BtCursor**)) memRbtreeCursor,
(int(*)(Btree*,int*)) memRbtreeGetMeta,
(int(*)(Btree*,int*)) memRbtreeUpdateMeta,
(char*(*)(Btree*,int*,int)) memRbtreeIntegrityCheck,
(const char*(*)(Btree*)) memRbtreeGetFilename,
(int(*)(Btree*,Btree*)) memRbtreeCopyFile,
#ifdef SQLITE_TEST
(int(*)(Btree*,int,int)) memRbtreePageDump,
(struct Pager*(*)(Btree*)) memRbtreePager
#endif
};
If I move the latter to the top, I get a lot of errors as
40 btree_rb.c `memRbtreeClose' was not declared in this scope
and so on...
Thanks in advance,
GCS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]