Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] mutually dependent modules
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Giuseppe Lo Presti <glopresti@i...>
Subject: [Caml-list] mutually dependent modules
Hi all,
Let's suppose that we have two mutually dependent modules, a.ml and
b.ml, i.e. in b.ml there is a call like A.f1() and in a.ml there is a
call like B.f2(). The question is how to link these modules? The .cmi
and .cmo compiling process runs ok, but when the linker tries to build
the executable, it stops saying something like:
Reference to undefined global `B'
make: *** [executable] Error 2
Any ideas?
Giuseppe Lo Presti


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners