Skip to content
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

FFI sample code build issue #3543

Open
gruntguo opened this issue Feb 14, 2022 · 1 comment
Open

FFI sample code build issue #3543

gruntguo opened this issue Feb 14, 2022 · 1 comment
Assignees

Comments

@gruntguo
Copy link

gruntguo commented Feb 14, 2022

I am a beginer of ocaml, when I build the example, follow the sample(ffi chapters), get following error.
then I made a change in dune , it works; not sure if it is my env issue or something else.
Thanks for the book

file:
+++
book/book/foreign-function-interface/examples/ffi/ncurses/dune

error:
+++
3 | (libraries ctypes-foreign.threaded)
^^^^^^^^^^^^^^^^^^^^^^^
Error: Library "ctypes-foreign.threaded" not found.

diff 
+++
$ diff dune.orig  dune
3c3
<   (libraries ctypes-foreign.threaded)
---
>   (libraries ctypes.foreign)
@yminsky
Copy link
Member

yminsky commented Apr 23, 2022

The book was out of date with how ctypes is now packaged and how it's invoked via Dune. Take another look!

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

No branches or pull requests

3 participants