I have a problem with compiling a program written in ocaml, the error appears to me is: Error: Unbound module Basics, how can I solve this problem?
I state that the beginner with this language.
libraries used throughout the code are:
open Basics ;;
open Paritygame ;;
open Univsolve;;
open Solvers;;
files containing the modules are: basics.ml basics.mli, paritygame.ml paritygame.mli,univsolve.ml univsolve.mli and solvers.ml solvers.mli…..
To compile byte code use
ocamlc, followed by any other files required in order, from left to right, that represents their dependencies. These files can be ocaml source code files, or compiled files (cmo). To compile the files individually tocmo, you should do something like,It is recommended that you include the string you used to attempt to compile the application in your answer, that should just be common sense.
These are not called libraries. These are modules. A library is a collection of
cmofiles compiled into acmafor distribution. But all of this, really says nothing on the dependencies between the modules to tell us what you are doing wrong in the compilation. I suggest, once you get some of these basics down, that you move on toocamlbuild. For simple projects like this, it can compile the project with literally no effort. It will resolve dependencies and compile only files that have changed since the last call.