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 VAA14875; Sun, 15 Jun 2003 21:09:02 +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 VAA17030 for ; Sun, 15 Jun 2003 21:09:01 +0200 (MET DST) Received: from swordfish ([216.241.35.41]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h5FJ90H15121 for ; Sun, 15 Jun 2003 21:09:00 +0200 (MET DST) Received: from matt by swordfish with local (Exim 3.35 #1 (Debian)) id 19Rcs8-0000Aw-00 for ; Sun, 15 Jun 2003 13:09:00 -0600 Date: Sun, 15 Jun 2003 13:09:00 -0600 From: Matt Gushee To: caml-list@pauillac.inria.fr Subject: [Caml-list] Toplevel & library conflicts Message-ID: <20030615190900.GA23999@swordfish> Reply-To: Matt Gushee Mail-Followup-To: caml-list@pauillac.inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i X-Spam: no; 0.00; gushee:01 mgushee:01 havenrock:01 everyone--:01 camlimages:01 3.06:01 englewood:01 manure:01 ignores:01 --lao:01 merel:01 ocaml:01 ocaml-:01 toplevel:01 lib:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, everyone-- I have an issue with name conflicts in libraries. I am working on an application that uses both Mlgraph and Camlimages; in general, it will render drawings in PostScript and then convert them to PNG. But both Mlgraph and Camlimages have modules named Geometry, so if I simply try to load both libraries in the toplevel, I get an error message saying that File /opt/ocaml-3.06/lib/ocaml/mlgraph.cma is not up-to-date with \ respect to interface Geometry Now, I understand that if I am compiling a program, I can create separate compilation units that isolate the functions calling on the two different libraries; in fact I successfully compiled a small test program that way a couple of days ago. But that's not what I want to do at the moment. Right now I am trying to build up a set of modules gradually and test them interactively. Can anyone suggest a good way to handle the name conflict when using the toplevel? Thanks in advance. -- Matt Gushee When a nation follows the Way, Englewood, Colorado, USA Horses bear manure through mgushee@havenrock.com its fields; http://www.havenrock.com/ When a nation ignores the Way, Horses bear soldiers through its streets. --Lao Tzu (Peter Merel, trans.) ------------------- 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