我正在使用OCaml Makefile作为我正在进行的项目,并且我有折叠模块
DynamicTree.ml
Huffman_Dynamic.ml,它使用DynamicTree
Huffman_Static.ml
main.ml,它同时使用Huffman_Static和Huffman_Dynamic。
这是我的制作文件:
# put here the names of your source files (in the right order)
SOURCES = huffman_static.ml dynamictree.ml huffman_dynamic.ml main.ml
# the name of the resulting executable
RESULT = huffman
# generate type information (.annot files)
ANNOTATE = yes
# make target (see manual) : byte-code, debug-code, native-code
all: native-code
include OCamlMakefile当我尝试制作这个项目时,我会得到一个Unbound value DynamicTree.create_anchor_leaf,它是由Makefile生成的ocamlopt -c -dtypes huffman_dynamic.ml生成的。
Ocaml Makefile网页它产生的国家自动依赖项,这里是不是遗漏了什么?
谢谢。
发布于 2010-12-01 04:42:57
你的名字大写正确吗?在您的帖子中,您同时使用了DynamicTree.ml和dynamictree.ml。
你确定这个问题来自Makefile吗?真的有一个由create_anchor_leaf导出的DynamicTree.ml函数吗?没有.mli把它藏起来?
https://stackoverflow.com/questions/4320543
复制相似问题