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
Usability problems with ocamlmktop / toplevels
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-08-12 (15:45)
From: Olivier Andrieu <andrieu@i...>
Subject: Re: [Caml-list] Usability problems with ocamlmktop / toplevels
Hi Richard,

 Richard Jones [Friday 12 August 2005] :
 > (3) Some libraries are linked into the toplevel, but apparently can't
 > be accessed.  For instance, Calendar ExtLib must be linked into the
 > toplevel because our main code relies on them; however no symbols from
 > either are visible:
 > 
 > $ ./adwords
 >         Objective Caml version 3.08.2
 > 
 > # Date.today ();;
 > Unbound value Date.today
 > # open Date;;
 > Unbound module Date
 > # ExtString.String.split;;
 > Unbound value ExtString.String.split

That's because the toplevel needs access to the .cmi of the modules
_at runtime_. Use the -I argument of the toplevel, or the #directory
directive. 

-- 
   Olivier