couldn't find procedure Sqlite3_Init



Hello,

Some two years ago I compiled Tcl/Tk 8.5.8 on windows and I still
occasionally toy with that. Now I want to use Sqlite so I have
Sqlite3.dll (3.7.13) and put that in the C:/sqlite directory. Then Tcl
can't find the Sqlite_Init procedure.
So I googled and I think I need a pkgIndex.tcl file. I came up with this:

package ifneeded sqlite3 3.7.13[list load\
[file join $dir libsqlite3[info sharedlibext]] sqlite3]

This goes into the sqlite dir. and after a

load C:/sqlite3/sqlite3 Sqlite3

it can't find Sqlite3_Init.
What am I doing wrong?

And also: when I put sqlite in the lib/sqlite3 subdir I expected

load ../lib/sqlite3/sqlite3 Sqlite3

to give a "couldn't find procedure" also but now it can't find the
library.
Again, what am I doing wrong?

Gerhard
.



Relevant Pages

  • Slow loading of large in-memory tables
    ... I am trying to load a relatively large table (about 1 Million ... I am accessing sqlite from Python, ... GB memory ...
    (comp.lang.python)
  • Re: no such file to load sqlite3
    ... time I want to use sqlite in ruby: ... no such file to load -- sqlite3 (MissingSourceFile) ... require 'rubygems' ...
    (comp.lang.ruby)
  • Re: Python 2.5 + sqlite full text search possible?
    ... You have to replace the sqlite3.dll that comes with Python 2.5 with one that includes fulltext search. ... If you can't or don't want to build it yourself, you could perhaps kindly ask on the SQLite mailing list. ... The DLL has to include fulltext search already, because only the very latest release of pysqlite wraps the method to enable loading of SQLite extensions. ... you'd need to have a custom built fts2.dll to load it into SQLite. ...
    (comp.lang.python)
  • Re: couldnt find procedure Sqlite3_Init
    ... Now I want to use Sqlite so I have ... that you specify the package name within the load ... create a folder in a folder wgich is listed in your auto_path. ...
    (comp.lang.tcl)
  • Re: couldnt find procedure Sqlite3_Init
    ... occasionally toy with that. ... Now I want to use Sqlite so I have ... load C:/sqlite3/sqlite3 Sqlite3 ... DLLEXPORT int Sqlite_Init ...
    (comp.lang.tcl)