-
Notifications
You must be signed in to change notification settings - Fork 95
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
The ncurses example doesn't work for me #70
Comments
The problem here is that the default behaviour of Foreign.foreign is to resolve names by looking in the current executable, and the default behaviour of the linker in recent Ubuntus is to link in only those libraries that are actually used. Since the symbols are looked up dynamically the linker can't tell that they're being used, so it doesn't link in ncurses. Either of the following should fix the issue:
Issue #49, when resolved, might make this no longer necessary
let foreign name typ = foreign name typ
~from:Dl.(dlopen ~filename:"libncurses.so.5" ~flags:[RTLD_NOW]) |
Closing, but feel free to reopen if the above doesn't fix things. |
This is the error that I get when I run
ncurses_cmd.native
:I run the most recent version of ubuntu and have installed all the ncurses packages I could find.
The text was updated successfully, but these errors were encountered: