-
Notifications
You must be signed in to change notification settings - Fork 117
Undefined symbol lua_checkstack #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think the problem (similar to #264) is that we're not exporting the I need to work out the linker options to export the Lua symbols to get it to work with the builtin Lua. |
Having done some investigation, I think the fix is to the end application. The ideal fix would be the export-executable-symbols, which is available on nightly but not yet on stable - so if you're using nightly, passing Until that's available, you can do it by adding linker flags. If I add |
Thanks, i'll use nightly version for now 😅 |
I, too, am working through this issue. Had used For completeness sake w/o exporting dynamic it is failing earlier:
With exporting dynamic:
Since
I'm still working through this, but adding my findings as well to this issue if someone had a quick fix. This is working fine w/ system Lua so it's not a blocker but would be nice to use the embedded Lua. |
I would recommend switching to mlua. it doesn't have those problems. |
@bigmstone Thanks for reporting your findings! |
@devzf i dont think rlua is dead, @jugglerchris do a great job here |
rlua is going to be deprecated soon in favour of mlua. See https://github.com/mlua-rs/mlua/blob/master/FAQ.md#loading-a-c-module-fails-with-error-undefined-symbol-lua_xxx-how-to-fix about about undefined symbols error. |
Hello, i'm trying to load
cjson
module with this configuration:and code:
but i got
with normal lua, it works great
version: 0.19.5
The text was updated successfully, but these errors were encountered: