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 DAA05379; Mon, 5 Aug 2002 03:51:36 +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 DAA05371 for ; Mon, 5 Aug 2002 03:51:35 +0200 (MET DST) Received: from nexus.stwing.upenn.edu (NEXUS.STWING.UPENN.EDU [165.123.132.61]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g751cB506357 for ; Mon, 5 Aug 2002 03:38:16 +0200 (MET DST) Received: from force.stwing.upenn.edu (daemon@force.stwing.upenn.edu [165.123.132.65]) by nexus.stwing.upenn.edu (8.11.6/8.11.6) with ESMTP id g751c8v20539 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO) for ; Sun, 4 Aug 2002 21:38:09 -0400 (EDT) Received: (from wlovas@localhost) by force.stwing.upenn.edu (8.11.6/8.11.6) id g751c8h10171 for caml-list@inria.fr; Sun, 4 Aug 2002 21:38:08 -0400 (EDT) Date: Sun, 4 Aug 2002 21:38:08 -0400 From: William Lovas To: caml-list@inria.fr Subject: Re: [Caml-list] incredibly dumb beginner's question about modules Message-ID: <20020805013808.GA10101@force.stwing.upenn.edu> Mail-Followup-To: caml-list@inria.fr References: <200208040038.g740cMw30129@orchestra.cs.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208040038.g740cMw30129@orchestra.cs.caltech.edu> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, Aug 03, 2002 at 05:38:22PM -0700, Michael Vanier wrote: > I compile this with "ocamlc -c test.ml". No problems so far. Then I open > an interactive toplevel: > > # open Test;; > # Foo.make_foo ();; > Reference to undefined global `Test' > # > > What's going on? What am I not doing that I should be doing? Mike, I think you want to be doing something like: # #load "test.cmo" first. This loads the bytecode file into the top-level -- it's sort of like making a new one with ocamlmktop, without the hassle. And it gives you an environment similar to the one you'll have when you're linking test.cmo with other .cmo files. Check the manual for more info, Chapter 9: http://caml.inria.fr/ocaml/htmlman/manual023.html cheers, William ------------------- 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