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 WAA00151; Tue, 4 Nov 2003 22:15:36 +0100 (MET) 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 WAA00122 for ; Tue, 4 Nov 2003 22:15:35 +0100 (MET) Received: from pop9.ucdavis.edu (pop9.ucdavis.edu [169.237.105.19]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hA4LFX110673 for ; Tue, 4 Nov 2003 22:15:34 +0100 (MET) Received: from beech (beech.ucdavis.edu [128.120.141.134]) by pop9.ucdavis.edu (8.12.9/8.12.9/it-std-5.0.2) with ESMTP id hA4LFWEV009296 for ; Tue, 4 Nov 2003 13:15:33 -0800 (PST) Received: from ijtrotts by beech with local (Exim 3.36 #1 (Debian)) id 1AH8fP-0005hX-00 for ; Tue, 04 Nov 2003 13:24:47 -0800 Date: Tue, 4 Nov 2003 13:24:47 -0800 From: Issac Trotts To: caml-list@inria.fr Subject: Re: [Caml-list] camlp4 in script Message-ID: <20031104212447.GA21832@ucdavis.edu> Reply-To: ijtrotts@ucdavis.edu References: <87ekwoa3y1.dlv@wanadoo.fr> <16295.48830.234496.48633@gargle.gargle.HOWL> <20031104201037.GB20928@ucdavis.edu> <16296.2885.478524.117242@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16296.2885.478524.117242@gargle.gargle.HOWL> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; issac:01 trotts:01 ijtrotts:01 caml-list:01 camlp:01 ocamlmktop:01 camlp:01 ocamlmktop:01 issac:01 trotts:01 cmo:01 ocaml:01 toplevel:01 toplevel:01 nov:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Nov 04, 2003 at 03:25:41PM -0500, Lars Nilsson wrote: > > I think no one suggested it because ocamlmktop creates a toplevel > > that doesn't automatically include the +camlp4 directory. > > The -I +camlp4 directive passed to ocamlmktop is only used to > > find the .cmo and .cma files while making the new toplevel. > > That could explain some of my problems I had when trying to test it. I > just put it down as a complete lack of understanding of how to work > with camlp4 (I haven't felt a deep need for it before, so much of it > is still a mystery to me). I did get something working, but it was a > very tiny example, and perhaps it just didn't reference anything in > manner that would require the #directory statement (I think I just > used the stream parser functionality in camlp4o). That's probably it. My earlier post in this thread shows how to work around this problem by making a new executable that makes a system call to the ocaml toplevel with the extra -I arguments. -- Issac Trotts ------------------- 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