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
Error loading Lua C Modules on Linux and OS X #85
Comments
|
@Parakleta, it seems you posted something similar here: Do you have any idea what’s going on here? |
|
What I posted there is probably exactly the issue you're having. Essentially the You'll need the use the |
|
On Linux, when I put this is my |
|
On OS X, I have to tweak the linker flags slightly: See the underscore instead of the dash, i.e. |
|
After doing a little bit more research it appears that a more cross-platform solution is putting this in Discovered this via a tip here: https://stackoverflow.com/questions/34082636/expose-symbols-to-dynamic-linker-when-linking-with-native-library-in-rust |
This is a separate error from #84. This occurs on both OS X and Linux. In the code snippet below:
serpentis a regular Lua module andlfs(luafilesystem) is a C module.On Linux it gives the following error:
On OS X (after fixing #84), it gives the following error:
The text was updated successfully, but these errors were encountered: