dimanche 23 août 2015

C++ and Lua with SQLite

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://ift.tt/1LsbMx2

Aucun commentaire:

Enregistrer un commentaire