-
Notifications
You must be signed in to change notification settings - Fork 96
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
Explain how to load/link libraries in the tutorial #73
Comments
👍 , I was having trouble loading a static library on ArchLinux. Converting the very same Thanks for the great work :) |
I would like to know how to link with static libraries as well. |
This issue is still relevant; I just spent far too long trying to figure out how to load and link in a library to use with ctypes.foreign, largely because the tutorial only uses toy examples that interface with already-loaded libraries via the toplevel. I eventually found what I needed to use This is a cool project that seems to really improve the convenience of making library bindings, but the documentation is still severely lacking despite there being a 6+ year old bug report on the documentation shortcomings. :( |
Is the following the sort of thing you're looking for?
|
Yes, that seems to be precisely what I was originally after, thank you very much. I like to experiment in a REPL first, sort of work out a rough draft of what I'm after in it, but after failing to find any information on doing something like that, I was going to just give up on the idea and work with a save/compile/test cycle using what info could find. I didn't even expect an answer, I just wrote my comment to let you know there are still new people finding this library, thinking it's pretty awesome, but getting confounded by the lack of info online. :) Anyhow, thanks again, that's pretty convenient and will make things a lot easier for me. |
This comes up rather often (e.g. #41, #49, #70, #71), and the current tutorial doesn't cover it at all.
Chapter 19 of Real World OCaml has some helpful remarks.
The text was updated successfully, but these errors were encountered: