I have two separate OCaml files as follows
a.ml
let hello str = "hello from" ^ str
and b.ml
A.hello "Module B"
to compile and run, I did the following one after the other
ocamlc -c a.ml
ocamlc -c b.ml
ocamlc -o a.cmo b.cmo
the first two command runs without an error.But when I execute the last command I get the following error
> File "_none_", line 1: Error: Error while linking b.cmo: Reference to
> undefined global `A'
How do I fix this?