[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2009-01-09 (14:40) |
From: | Christophe TROESTLER <Christophe.Troestler+ocaml@u...> |
Subject: | Re: [Caml-list] Toplevel - load cmo from given location |
On Fri, 09 Jan 2009 14:06:25 +0000, Dawid Toton wrote: > > I've noticed stange behaviour: > > The following works OK (using #directory directive): > > #!/usr/bin/ocamlrun ocaml > #directory "/home/dt2/Calc1/CalcEngine/src/_build/extlib/" > #load "enum.cmo" > open Enum > > But this version not (using the full path directly): > > #!/usr/bin/ocamlrun ocaml > #load "/home/dt2/Calc1/CalcEngine/src/_build/extlib/enum.cmo" > open Enum > > The problem is that it gives "Unbound module Enum" while no error about loading the cmo&cmi is shown. The #directory instruction is needed to find the .cmi. My 0.02¤, ChriS