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
[Caml-list] HELP on -a options for ocamlopt
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-04-23 (12:52)
From: Markus Mottl <mottl@m...>
Subject: Re: [Caml-list] HELP on -a options for ocamlopt
On Mon, 23 Apr 2001, Franck Delaplace wrote:
> I try to built a library which contains several modules.
> ocamlopt -a  -o lib  t1.cmx t2.cmx t3.cmx

You have obviously forgotten to copy the compiled interface files (*.cmi).
They are needed in the include path (e.g. in the same dir) if you want
to access modules in the library.

You can omit them on purpose if you do not want the library user to "see"
some modules, e.g. implementations of internal stuff. But the publically
accessible ones need the compiled interface files.

Markus Mottl

Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr