Version française
Home     About     Download     Resources     Contact us    
Browse thread
generating .cma-files with ocamlbuild
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alain Frisch <Alain.Frisch@i...>
Subject: Re: [Caml-list] generating .cma-files with ocamlbuild
Christian Sternagel wrote:
> Is there an easy way to tell ocamlbuild that it should
> take some *.ml and *.mli files and build an archive
> <name>.cma out of them?

Yes, just create a .mllib file that lists all the modules you want to
include in the .cma.

> 1) Is my understandung correct?

Yes, it is.

> 2) Can there be a problem if somebody using util.cma
> (who does not know, that setInternal.cmo is part of
> it) uses a self-made module by the name SetInternal
> in his application?

Indeed, the linker will complain about incompatible interfaces for the
same module name.


-- Alain