Hi,

I'm trying to load the module FTS3 in SQLITE 3.5.7 using fts3.so
compiled from the source files located... in the /ext folder of
http://www.sqlite.org/sqlite-3.5.7.tar.gz

and compiling them as...
$gcc -shared *.c -o libfts3.so

I've enabled load_extension.

Now when i try to load the extension from sqlite3's command line as
> .load ./libfts3.so
the extension is loaded with no errors

but when i try to load it as
> select load_extension('./libfts3.so');
SQL Error: error during initialization

So what exactly is the error? Is it a problem with verion 3.5.7 (i've
not tried it with any other version)?

The problem is that i need to dynamically load the extension from a
c++ program. I can't call .load command from within the program as the
it should be loaded for the current sqlite3db handle. So i need to
rely on "select load_extension(...)"

Any suggestions?

Thanks,
Siddharth Pal





Reply via email to