如何加载绳索:安装它,但无法加载它

时间:2015-11-20 19:35:39

标签: ocaml opam

我用opam安装了绳子并确认它可用:

rope 0.5 Ropes ("heavyweight strings")

但如何加载? The documentation表示我应该使用#load "rope.cma";;,但这会给我留言Cannot find file rope.cma.

有人可以告诉我装载它的咒语是什么?

1 个答案:

答案 0 :(得分:3)

要将rope加载到交互式会话中,请使用topfind

# #use "topfind";;
# #require "rope";;

使用rope

编译您的程序
ocamlbuild -pkg rope your_program.native

或者

ocamlfind ocamlopt -package rope your_program.ml -o your_program
相关问题