From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id D135ABBAF for ; Fri, 9 Jan 2009 15:40:25 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgIBAAfxZknBvsFKl2dsb2JhbACUEQEBAQEBCBUHu2iFbw X-IronPort-AV: E=Sophos;i="4.37,239,1231110000"; d="scan'208";a="33510910" Received: from dnsp.umh.ac.be (HELO hermes1.umh.ac.be) ([193.190.193.74]) by mail4-smtp-sop.national.inria.fr with ESMTP; 09 Jan 2009 15:39:41 +0100 Received: from poincare.swapping.umh.ac.be (mathwifi1.swapping.umh.ac.be [10.102.100.203]) by hermes1.umh.ac.be (8.14.2/8.13.6) with ESMTP id n09EbgMi602206; Fri, 9 Jan 2009 15:37:42 +0100 Received: from localhost ([127.0.0.1] ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.69) (envelope-from ) id 1LLIWS-0003cW-4Y; Fri, 09 Jan 2009 15:39:40 +0100 Date: Fri, 09 Jan 2009 15:39:39 +0100 (CET) Message-Id: <20090109.153939.9450351754532580.Christophe.Troestler+ocaml@umons.ac.be> To: OCaml Mailing List Subject: Re: [Caml-list] Toplevel - load cmo from given location From: Christophe TROESTLER In-Reply-To: <496759E1.3070104@uj.edu.pl> References: <496759E1.3070104@uj.edu.pl> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons-Hainaut X-Mailer: Mew version 6.0.51 on Emacs 22.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.64 on 193.190.193.76 X-Spam: no; 0.00; toplevel:01 cmo:01 christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 usr:01 ocamlrun:01 ocaml:01 enum:01 cmo:01 enum:01 usr:01 ocamlrun:01 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