Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Christian Sternagel <christian.sternagel@uibk.ac.at>
To: caml-list@yquem.inria.fr
Subject: ocamlbuild `Circular dependencies'
Date: Thu, 24 Jan 2008 15:23:27 +0100	[thread overview]
Message-ID: <20080124142327.GC761@pc6197-c703.uibk.ac.at> (raw)

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
files.

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
dependencies.

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

cheers

christian


             reply	other threads:[~2008-01-24 14:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-24 14:23 Christian Sternagel [this message]
2008-01-28 10:23 ` [Caml-list] " Romain Bardou
2008-01-28 10:43   ` Christian Sternagel
2008-01-28 11:08     ` Romain Bardou
2008-01-28 14:24     ` Nicolas Pouillard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080124142327.GC761@pc6197-c703.uibk.ac.at \
    --to=christian.sternagel@uibk.ac.at \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox