caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlbuild and pack
@ 2008-09-09 13:38 Johannes Kanig
  2008-09-09 13:51 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Kanig @ 2008-09-09 13:38 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 881 bytes --]

Hi List,

I have the following problem. I have three files, each consisting of one
line:

a.ml: type t = float
b.ml: type t = A.t
c.ml: include B

Now I want to put these modules into a pack, but I only want to export A and
C, so I write a file project.mli:
module A : sig type t end
module C : sig type t = A.t end

As I want to use ocamlbuild, I also create a file project.mlpack:
A
C

Now, the command "ocamlbuild project.cmo" works fine, but I can't build a
library from that:
ocamlbuild  project.cma
Circular dependencies: "project.cmo" already seen in
  [ "b.cmo"; "project.cmo" ]

There clearly aren't any circular dependencies, are there? Am I missing
something?
The problem goes away if I export B instead of C. So the troublemaker seems
to be the include directive.

I almost forgot: I am using ocaml 3.10.2 from godi.

Johannes

-- 
Johannes Kanig
johannes.kanig@lri.fr

[-- Attachment #2: Type: text/html, Size: 1192 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-09 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-09 13:38 ocamlbuild and pack Johannes Kanig
2008-09-09 13:51 ` [Caml-list] " Nicolas Pouillard
2008-09-09 14:10   ` Johannes Kanig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).