kumoshk
October 3rd, 2009, 02:48 AM
I successfully followed the instructions at the following link:
http://cc.byexamples.com/20080607/how-to-embed-lua-51-in-c/
However, I couldn't get the Lua portion to load if I tried requiring a shared object file, or a .so file (even if it was in the same directory).
Does anyone know a way to fix this so the path still looks for shared object files? It doesn't have any problems requiring .lua files (even if they're not in the same directory, as long as they're in a path that Lua looks for).
Note: This shouldn't matter, but if it does, I'm using LuaJIT (requiring .so files when it's not embedded works just fine).
http://cc.byexamples.com/20080607/how-to-embed-lua-51-in-c/
However, I couldn't get the Lua portion to load if I tried requiring a shared object file, or a .so file (even if it was in the same directory).
Does anyone know a way to fix this so the path still looks for shared object files? It doesn't have any problems requiring .lua files (even if they're not in the same directory, as long as they're in a path that Lua looks for).
Note: This shouldn't matter, but if it does, I'm using LuaJIT (requiring .so files when it's not embedded works just fine).