So I am writing a multiple-file program in OCaml and my directory structure looks like this:
src
|- module1.ml
|- section1
|- module2.ml
|- module3.ml
Where module1 opens module2 and module3, and module2 opens module3.
I compile the program with the following:
ocamlopt -o bin/myprog src/module1.ml src/section1/module2.ml src/section1/module3.ml
It throws in error in module2.ml saying that Module3 is unbound.
Does anyone know why this is happening?