Skip to content

Add details when failing to load a shared library with \FFI::load() and \FFI::cdef() #9913

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

Closed
wants to merge 1 commit into from
Closed

Add details when failing to load a shared library with \FFI::load() and \FFI::cdef() #9913

wants to merge 1 commit into from

Conversation

pirast
Copy link
Contributor

@pirast pirast commented Nov 9, 2022

This is similar to what the \dl() function does

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Besides the test case, this looks good to me (although it's probably useless on Windows, where the error always appears to be "The specified module could not be found").

- Call dlerror when a library failed to load properly
@cmb69 cmb69 closed this in 289822d Nov 28, 2022
@cmb69
Copy link
Member

cmb69 commented Nov 28, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants