$ dune build hello.exe
Entering directory ‘/Users/joel/src/book’
Don’t know how to build examples/code/ffi/hello/hello.exe
In hello.ml, I wonder how the “open Ncurses” is supposed to work, since there is no such library installed in the instructions. When trying to manually load it in utop it fails:
utop # open Ncurses;;
Error: Unbound module Ncurses
To me it looks like the C bindings (done with Ctypes) are in a file ncurses.ml which would constitute this module. What is is in which file is not so obvious.
CC’ing @avsm and @samoht. I think one thing that made this better in previous editions of RWO is that the filename was marked in code examples in the HTML and book output. Maybe this is something we can try to recover in the dev version of the book.