ich OCaml Makefile Ich arbeite an für ein Projekt verwende ich die Folowing ModuleOCaml Make-Datei Abhängigkeitsproblem
DynamicTree.ml
Huffman_Dynamic.ml
die DynamicTree
Huffman_Static.ml
main.ml
, die verwendet verwendet sowohl Huffman_Static
und Huffman_Dynamic
.
Dies ist meine Make-Datei:
# 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
Wenn ich versuche, das Projekt zu machen, ich ein Unbound value DynamicTree.create_anchor_leaf
erhalten, die aus ocamlopt -c -dtypes huffman_dynamic.ml
von Makefile erzeugt führt.
Das Ocaml Makefile wepage states that it generates automatisch Abhängigkeiten, fehle ich hier etwas?
Vielen Dank.
Können Sie ein Protokoll darüber erstellen, was passiert, wenn Sie 'make' nach einem' make clean' ausführen? Das könnte einen Einblick geben. –