From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA26232 for caml-redistribution; Fri, 17 Sep 1999 14:45:31 +0200 (MET DST) 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 OAA26661 for ; Fri, 17 Sep 1999 14:44:25 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.8.7/8.8.7) with ESMTP id OAA11874; Fri, 17 Sep 1999 14:44:18 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA22193; Fri, 17 Sep 1999 14:44:16 +0200 (MET DST) From: Pierre Weis Message-Id: <199909171244.OAA22193@pauillac.inria.fr> Subject: Re: What am I missing? To: skaller@maxtal.com.au (skaller) Date: Fri, 17 Sep 1999 14:44:16 +0200 (MET DST) Cc: caml-list@inria.fr In-Reply-To: <37E195CC.9E3CF558@maxtal.com.au> from "skaller" at Sep 17, 99 11:13:49 am X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: weis > Why? > > [root@ruby] ~/felix>ocamlc util.ml > [root@ruby] ~/felix>ocamlc util.mli > [root@ruby] ~/felix>ocaml > Objective Caml version 2.02 > > # open Util;; > # string_of_list;; > Reference to undefined global `Util' When you open a module you just add the list of exported names from that module to your current environment (the interface of the module is loaded). The corresponding implementation must be loaded (the code has to be linked), before using any of the names defined in the implementation. Use the pragma #load in the interactive environment to link the code: Objective Caml version 2.02 # open Util;; # #load"util.cmo";; # string_of_list;; - : 'a list -> string = Best regards, Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://cristal.inria.fr/~weis/