While testing I appended the following code to the end of sqlite3.c. #include "csv.c" #include "stmt.c" #include "compress.c" #include "eval.c" #include "carray.c"
int core_init(const char* dummy) { int nErr = 0; nErr += sqlite3_auto_extension((void(*)())sqlite3_compress_init); nErr += sqlite3_auto_extension((void(*)())sqlite3_eval_init); #ifndef SQLITE_OMIT_VIRTUALTABLE nErr += sqlite3_auto_extension((void(*)())sqlite3_csv_init); nErr += sqlite3_auto_extension((void(*)())sqlite3_stmt_init); nErr += sqlite3_auto_extension((void(*)())sqlite3_carray_init); #endif return nErr ? SQLITE_ERROR : SQLITE_OK; } My compiler gave the following errors/warnings. [bcc32 Error] csv.c(42): E2209 Unable to open include file 'sqlite3ext.h' I fixed this error by changing <sqlite3ext.h> to "sqlite3ext.h" [bcc32 Error] sqlite3.c(204450): E2451 Undefined symbol 'sqlite3_stmt_init' Not sure if this is to do with the fact that stmt.c is already present in sqlite3.c [bcc32 Error] compress.c(18): E2209 Unable to open include file 'zlib.h' Above error appears even if I change <zlib.h> to "zlib.h" [bcc32 Warning] compress.c(54): W8065 Call to function 'compress' with no prototype [bcc32 Error] compress.c(55): E2451 Undefined symbol 'Z_OK' [bcc32 Warning] compress.c(87): W8065 Call to function 'uncompress' with no prototype [bcc32 Error] compress.c(88): E2451 Undefined symbol 'Z_OK' -- View this message in context: http://sqlite.1065341.n5.nabble.com/Compiling-spellfix-for-sqlite3-tp70656p97100.html Sent from the SQLite mailing list archive at Nabble.com. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users