From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA26494; Mon, 23 Aug 2004 22:36:58 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA26143 for ; Mon, 23 Aug 2004 22:36:57 +0200 (MET DST) Received: from relaissmtp.ens-lyon.fr (pluvier.ens-lyon.fr [140.77.167.5]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i7NKauRM024281 for ; Mon, 23 Aug 2004 22:36:56 +0200 Received: from mouette.ens-lyon.fr ([140.77.167.4]) by relaissmtp.ens-lyon.fr with esmtp (Exim 3.35 #1 (Debian)) id 1BzLYm-0004TC-00 for ; Mon, 23 Aug 2004 22:36:56 +0200 Received: by mouette.ens-lyon.fr (Postfix, from userid 33) id 6698C3C61C2; Mon, 23 Aug 2004 22:36:55 +0200 (CEST) To: caml-list@pauillac.inria.fr Subject: [Caml-list] Re : [path directives] Message-ID: <1093293415.412a556748ac7@mouette.ens-lyon.fr> Date: Mon, 23 Aug 2004 22:36:55 +0200 (CEST) From: Jean-Baptiste Rouquier References: <16682.21287.26129.98212@soggy.deldotd.com> In-Reply-To: <16682.21287.26129.98212@soggy.deldotd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.6 X-Originating-IP: 141.211.97.44 X-Miltered: at concorde with ID 412A5568.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ens-lyon:01 const:01 const:01 cmo:01 cmo:01 ocaml:01 ocaml:01 caml:01 caml:01 float:02 unbound:02 let:04 path:06 quite:06 load:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk It bites me quite often. Add a #directory "/home/login/src/ocaml/pll";; at the beginning of your session, to let ocaml find the file const.cmi. Jean-Baptiste Rouquier. >~/src/ocaml/math $ ocaml > Objective Caml version 3.08.0 > ># #load "const.cmo";; ># Const.pi > ;; >- : float = 3.14159265358979312 >So then I change into another directory and load the EXACT SAME file. > > >~/src/ocaml/math $ cd ../pll >~/src/ocaml/pll $ ocaml > Objective Caml version 3.08.0 > ># #load "../math/const.cmo";; ># Const.pi;; >Unbound value Const.pi ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners