Problem when using 3rd party json lib
irineu opened this issue · comments
Describe the bug
I'm using cjson with luacpp
To Reproduce
lua 5.3.6
install cjson
run lua natively with cjson => OK
run lua with luacpp and import cjson => ERROR
Error Executing 2 error loading module 'cjson' from file '/usr/local/lib/lua/5.3/cjson.so':
dynamic libraries not enabled; check your Lua installation
I have recompiled my lua with -DLUA_USE_DLOPEN, but the error occurs only on luacpp environment.
Expected behavior
Should work like the native way
Stack/Memory dumps
N/A
Server (please complete the following information):
- OS: [Centos 7]
- Lua [5.3]
- Architecture [amd64]
[edit]
i've found something useful:
https://stackoverflow.com/questions/36777560/using-cjson-in-embedded-lua-in-c