Closed TyOverby closed 4 years ago
I think you need to add ctypes.foreign
or ctypes.foreign.threaded
to your libraries
list. ctypes
only links the core ctypes library without any of the dlopen or libffi support pieces.
ctypes.foreign
did the trick; thanks!
For other people trying to do the same, how should I submit documentation for this?
Closing, because there's nothing to fix here. (But please feel free to submit documentation improvements.)
I ran the following:
opam install ctypes-foreign
my dune file looks like this:
And the error message that I get is the following:
I'm building on ubuntu, so I don't understand why it didn't pull in dl.ml.unix