我是OCaml的新手,我正在尝试使用它的HANSEI库。为此,我需要包括一些.ml和.mli文件,如前面提到的here和caml- files t.tar.gz,如前面提到的here。
我的MakeFile中的初始内容行如下:
# HANSEI: OCaml library for direct probabilitic programming
#
# The library requires the caml-shift library, delimcc.cma and the
# correspondent .mli files. See caml-shift.tar.gz.
# Please adjust DELIMCC= below to point to the library.
#
# The typical command to use the OCaml top-level:
# $ ocaml -I ../../Continuations/caml-shift/ \
# ../../Continuations/caml-shift/delimcc.cma
# and then do #load "prob.cma";;
# $Id$
DELIMCC=/root/.opam/4.00.1/lib/caml-shift
OCAMLC=ocamlc
OCAMLOPT=ocamlopt
DELIMCCRUN=-I $(DELIMCC) -dllpath $(DELIMCC) $(DELIMCC)/delimcc.cma
DELIMCCINT=$(DELIMCC)/delimcc.cmi
DELIMCCOPT=-I $(DELIMCC) $(DELIMCC)/delimcc.cmxa
LIB=prob.cma
LIBOPT=prob.cmxa
.
.
.MakeFile的注释部分建议我将delimcc.cma文件与其他.ml和.mli文件一起使用,但我不确定如何创建.cma文件。我找不到已经创建的delimcc.cma文件。请帮我弄一下这个。如果我的理解有误,请告诉我。谢谢!
发布于 2014-02-13 13:20:56
看起来您需要先构建delimcc库,然后才能使用它。
发布于 2014-02-13 20:21:44
opam search delimcc
Available packages for system:
delimcc -- Oleg's delimited continuations library for byte-code and native OCamlhttps://stackoverflow.com/questions/21740466
复制相似问题