0

I installed rope with opam and verified that it's available:

rope 0.5 Ropes ("heavyweight strings")

But how to load it?? The documentation states I should use #load "rope.cma";; but this gives me the message Cannot find file rope.cma.

Can someone please tell me what's the incantation for loading it??

4

1 回答 1

3

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

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

编译你的程序rope

ocamlbuild -pkg rope your_program.native

或者

ocamlfind ocamlopt -package rope your_program.ml -o your_program
于 2015-11-20T20:10:58.313 回答