I am using the OCaml REPL and I need to load a precompiled .cmo file. This works fine if the file is in the working directory.
However if the file lies elsewhere, specifying an absolute or relative path does not show an error on loading, but the corresponding module is not available :
# #load "corrige/build/lin/5.0.0/support.cmo";;
# #show Support;;
Unknown element.
I know I can use #cd
beforehand, but I find this cumbersome :
# #cd "corrige/build/lin/5.0.0";;
# #load "support.cmo";;
# #show Support;;
module Support :
sig
module Patch : sig ... end
module Types : sig ... end
module Regexp : sig ... end
module Determinisation : sig ... end
module Glushkov : sig ... end
module Affichage : sig ... end
module Aide : sig ... end
end