Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Build 创建.cma文件OCaml_Build_Ocaml_Ocamlbuild - Fatal编程技术网

Build 创建.cma文件OCaml

Build 创建.cma文件OCaml,build,ocaml,ocamlbuild,Build,Ocaml,Ocamlbuild,我是OCaml的新手,我正在尝试使用它的库。为此,我需要包括前面提到的几个.ml和.mli文件以及前面提到的caml-shift.tar.gz 我的MakeFile中的初始内容行如下所示: # HANSEI: OCaml library for direct probabilitic programming # # The library requires the caml-shift library, delimcc.cma and the # correspondent .mli file

我是OCaml的新手,我正在尝试使用它的库。为此,我需要包括前面提到的几个.ml和.mli文件以及前面提到的caml-shift.tar.gz

我的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的Comment部分建议我使用delimcc.cma文件以及其他.ml和.mli文件,但我不确定如何创建.cma文件。我找不到已创建的delimcc.cma文件。请帮我做这个。如果我的理解有误,请告诉我。谢谢

看起来您需要先构建delimcc库,然后再使用它。

使用:


您的OCaml技能如何?还是ML?您安装了哪些OCaml编程环境?什么系统类型?这将给出一个关于答案必须是多么明确的提示。这个Makefile有一个DELIMCC的绝对路径,只有root用户有一个。这不是便携式的。
opam search delimcc
Available packages for system:
delimcc  --  Oleg's delimited continuations library for byte-code and native OCaml