I have a folder tmp
which is generated after I do extraction from coq to ocaml.
~/tmp/cpf0.ml cpf0.mli cpf0.o cpf0.cmi cpf0.cmx cpf0.cmo
main.ml
is a file I use to call one function in cpf0
:
let prf = Cpf0.proof;;
I got an error saying Cpf0.proof
is unbound.
I tried to used: (proof
exists in Cpf0
).
open Cpf0;;
let prf = proof;;
I got the same error.
Ocaml linking: ocamlc -I tmp -c main.ml
I don't understand why it does not accept Cpf0
?
But open Cpf0;;
alone, the linking does not give me any error. I tested with another file in tmp
, it is able to use all functions of that file.