On Thu, Oct 14, 2010 at 1:04 AM, Nate Silva <n...@desi.com> wrote: > (Although FTS can be compiled into SQLite, I would like a DLL so I can > dynamically load the extension into environments where I have a pre-compiled > SQLite that doesn’t have full text search.) > > Nate, I think compile-time errors in this case is just a part of the problem. For such logic to work one has to develop the api/library with this possible feature in mind. For example to resolve global variables or being ready for unexpected library unloading while the main db is still opened. If you really want to save space/memory, why don't you just prepare two versions of dlls, with and without fts3 and choose which one to load during run-time? Or if you want the variant without fts to be statically linked, it's not that hard to move function pointers to some struct and change the pointers in the struct either to static functions or dynamic ones depending on the state of the program.
Max _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users