Re: [sqlite] Having issues Loading an external (extension-functions.c)

2007-09-29 Thread Liam Healy
Makes sense. I've applied the patch and posted the new version. Liam On 9/28/07, Joe Wilson <[EMAIL PROTECTED]> wrote: > --- Liam Healy <[EMAIL PROTECTED]> wrote: > > Can you explain why you would want it to not compile as a > > loadable module? (i.e. under what circumstances you would not defin

Re: [sqlite] Having issues Loading an external (extension-functions.c)

2007-09-28 Thread Joe Wilson
--- Liam Healy <[EMAIL PROTECTED]> wrote: > Can you explain why you would want it to not compile as a > loadable module? (i.e. under what circumstances you would not define > COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE). When you don't want the overhead/hassle of using shared libraries and you j

Re: [sqlite] Having issues Loading an external (extension-functions.c)

2007-09-28 Thread Liam Healy
Can you explain why you would want it to not compile as a loadable module? (i.e. under what circumstances you would not define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE). On 9/28/07, Joe Wilson <[EMAIL PROTECTED]> wrote: > --- Liam Healy <[EMAIL PROTECTED]> wrote: > > Thanks. I have included y

Re: [sqlite] Having issues Loading an external (extension-functions.c)

2007-09-28 Thread Joe Wilson
--- Liam Healy <[EMAIL PROTECTED]> wrote: > Thanks. I have included your changes in extension-functions.c so now > sqlite3_load_extension is usable. I had been using > sqlite3RegisterExtraFunctions which is not the official interface, and > that is why I never encountered this problem. Also, I h

Re: [sqlite] Having issues Loading an external (extension-functions.c)

2007-09-28 Thread Liam Healy
Thanks. I have included your changes in extension-functions.c so now sqlite3_load_extension is usable. I had been using sqlite3RegisterExtraFunctions which is not the official interface, and that is why I never encountered this problem. Also, I have improved the Mac OSX instructions for those th

Re: [sqlite] Having issues Loading an external (extension-functions.c)

2007-09-25 Thread Joe Wilson
See this file for an example of how to make a loadable extension: http://www.sqlite.org/cvstrac/fileview?f=sqlite/src/test_loadext.c&v=1.1 Make note of using #include "sqlite3ext.h" instead of sqlite3.h and the use of the SQLITE_EXTENSION_INIT1 and SQLITE_EXTENSION_INIT2 macros. --- eric

Re: [sqlite] Having issues Loading an external

2007-09-25 Thread eric higashino
I cant find the type decleration for sqlite3_api_routines type. I greped the sqlite source directory and couldnt find a definition of it. Do you think this is the reason why I am getting a syntax error? On 9/25/07, eric higashino <[EMAIL PROTECTED]> wrote: > > I have tried this and I get a compi

Re: [sqlite] Having issues Loading an external

2007-09-25 Thread eric higashino
I have tried this and I get a compilation error "extension-functions.c:1849: error: syntax error before '*' token" That line is where i marked with the arrows. I can't see why there would be a syntatic error with that? I have only added this function at the very bottom of the script. I have tri

Re: [sqlite] Having issues Loading an external

2007-09-24 Thread Joe Wilson
This contrib extension library cannot be used directly as an sqlite loadable module because it lacks an entry point function with the prototype: int sqlite3_extension_init( sqlite3 *db, /* The database connection */ char **pzErrMsg, /* Write error messages here */