Saturday, October 25, 2014

Compiling a multiple file project in ocaml

When we compile a multiple file project in ocaml, we can use the following command:

ocamlopt -o progprog eaBase.ml eaPoor.ml

If we are using the class or module in the first file in the second, then we need to open the module in the second file. After that inheritance works fine.

More about the ocaml tools here

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.