Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocamlbuild `Circular dependencies'
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christian Sternagel <christian.sternagel@u...>
Subject: ocamlbuild `Circular dependencies'
I use the following setting for a project:

Within the root directory of the project there are
two subdirectories A and B containing *.ml, *.mli, and *.mly

additionally there is the file A.mllib in A containing all
modules that are in A and B.mllib containing all
modules that are in B.

ocamlbuild -I A A.cma

works fine.

Now B should also result in a lib where some modules in B
depend on modules in A. When trying

ocamlbuild -lib A -Is A,B B.cma

the compilation terminates unsuccessful indicating
some Circular dependencies. However, the Makefile we
used before works fine and there really are no circular

Am I doing something completely wrong here?
Isn't it possible to compile libraries depending on other