You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because there's a working snapshot of ctypes (from yallop/ocaml-ctypes#588) in that chapter at the moment. I'll work out these rough edges with the threaded/unthreaded variants over the next few weeks as that gets ready to merge upstream.
I came across the same issue the other day and I found this issue is still open.
May I ask if there's going to be an update? Because it can be misleading if one were following the example from scratch instead of cloning directly the book.
The Foreign Function Interface chapter uses the
ctypes-foreign
library, installed usingopam install ctypes-foreign
. So far so good.When using the library though, the examples use
#require "ctypes-foreign"
for utop andctypes-foreign.threaded
for dune:Which leads to the following error:
If instead I use
ctypes.foreign.threaded
it works fine.I tried to fix the book but then the tests fail. I suspect it's because the
ctypes
version in theduniverse
folder is out of date?The text was updated successfully, but these errors were encountered: