English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2007-03-24 (15:26)
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