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
RE: [Caml-list] ocamlmktop mystery
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-18 (13:36)
From: Florian Weimer <fw@d...>
Subject: Re: [Caml-list] ocamlmktop mystery
* EL CHAAR Rabih:

> The interface file is still in the lib directory.
> you should do the follwing :
> #directory "../lib";;
> # Foo.add;;
> The toplevel has to see the interface files .cmi in order to get the
> types, since this infomation is not in the compiled .cmo or .cmx.

Ah, this explains it.  Thanks a lot.

Is there some way to hard-code the paths in the binary (or include the
.cmi files themselves)?  Currently, I use Topdirs.dir_directory to set
the directories, which seems to work, but smells a bit like abusing an
internal interface.