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 to cmo
, you should do something like,
ocamlc.opt -c -annot -o util.cmo util.ml
ocamlc.opt unix.cmo str.cmo util.cmo game.ml -o game
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.
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.....
These are not called libraries. These are modules. A library is a collection of cmo
files compiled into a cma
for 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 to ocamlbuild
. 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.