【发布时间】:2010-12-01 01:51:54
【问题描述】:
我正在为我正在从事的项目使用 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 网页 states that it generates 自动依赖,我在这里遗漏了什么吗?
谢谢。
【问题讨论】:
-
您能否发布一个日志,记录在
make clean之后运行make时发生的情况?这可以提供一些见解。