I’m new to Ocaml and I’m trying to go through the Real World OCaml book to learn. I’m getting the following errors compiling the dictionary module and the dlist module from Chapter 8: Imperative Programming:
I’ve copied the code from the second version of the book (http://dev.realworldocaml.org/imperative-programming.html) which is currently in beta. I’m thinking it could be because of a version mismatch or something along those lines. I’m using version 4.05.0 of ocaml.
Here are the contents of my dune file which I’m using to compile to modules.
(executable (name dictionary) (modules dictionary) (libraries base)) (executable (name dlist) (modules dlist) (libraries base))
Looking at the code I can’t tell why it’s producing these errors. I’d be happy to provide any other relevant information. Any advice or suggestions on how to fix these errors would be greatly appreciated!