Skip to content

Binding to shared object (running a C function) #422

Discussion options

You must be logged in to vote

See #256
You can only run pure Lua Code. Lua Modules which load C libraries do not work.

If you want to use C functions with gopher-lua you have to write a wrapper in Go around the C library and then expose that wrapper to lua.
I'm not aware of any Go FFI library for usage with gopher-lua

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LevitatingBusinessMan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #309 on January 05, 2023 21:11.