I have C++ with Lua binding. All is OK, but if I add SQLite, my scripts stop working (not even an empty script with just one print runs).
In my C++ code, I call
luaL_openlibs( this->state );
luaopen_lsqlite3(this->state); /* sqlite */
If I do this, Lua script no longer works.
If I remove (comment out) luaopen_lsqlite3, scripts are working (but obviously without SQLite). What is wrong? Or what I need to call?
I am using http://lua.sqlite.org/index.cgi/index