2010-12-01 8 views
3

私が働いているプロジェクトのためのOCamlのMakefileを使用していると私はどの用途DynamicTreeOCamlのメイクファイルの依存関係の問題

Huffman_Static.ml

main.mlを使用していますfolowingモジュール

DynamicTree.ml

Huffman_Dynamic.mlを持っています両方ともHuffman_StaticおよびHuffman_Dynamic

これは私のメイクファイルである:私はプロジェクトを作成しようとすると、私はメイクファイルで生成されocamlopt -c -dtypes huffman_dynamic.mlからもたらさUnbound value DynamicTree.create_anchor_leafを取得

# 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 

Ocaml Makefile wepage states that it generates私はここに何か不足していますか?

ありがとうございます。

+0

'make clean'の後に' make'を実行したときの出来事のログを投稿できますか?それはいくつかの洞察を提供することができます。 –

答えて

8

あなたの名前の大文字は正しいですか?あなたの投稿では、DynamicTree.mldynamictree.mlの両方を使用します。

問題はMakefileから発生していますか?実際にはDynamicTree.mlによってエクスポートされたcreate_anchor_leaf関数がありますか?いいえ.mliそれを隠していますか?

+0

ありがとう、それは問題の原因となるTの大文字です – 0xFF