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 LAA08466; Mon, 27 Aug 2001 11:59:17 +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 LAA08533 for ; Mon, 27 Aug 2001 11:59:16 +0200 (MET DST) Received: from smtp.nwlink.com (smtp.nwlink.com [209.20.130.57]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f7R9xFP24710 for ; Mon, 27 Aug 2001 11:59:15 +0200 (MET DST) Received: from ip178.usw22.rb1.bel.nwlink.com (ip178.usw22.rb1.bel.nwlink.com [207.202.195.178]) by smtp.nwlink.com (8.9.3/8.9.1) with SMTP id CAA05819 for ; Mon, 27 Aug 2001 02:57:29 -0700 (PDT) Received: (qmail 9694 invoked by uid 500); 27 Aug 2001 09:59:06 -0000 Date: Mon, 27 Aug 2001 02:59:06 -0700 From: Michael Leary To: caml Subject: Re: [Caml-list] OcamlMakefile not working for me... Message-ID: <20010827025906.A9673@jean.nwlink.com> References: <20010826213923.A3112@jean.nwlink.com> <20010827011635.A8827@jean.nwlink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010827011635.A8827@jean.nwlink.com>; from leary@nwlink.com on Mon, Aug 27, 2001 at 01:16:35AM -0700 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk OK, figured out the rest of it... I wasn't familar with the method for using a package. Roughly: (* nineteen_one.ml *) open Printf;; open Cgi;; parse_arguments default_config; let value = argument_value("foo");; header;; printf "%s" value;; # makefile OCAMLMAKEFILE = ./OcamlMakefile SOURCES = nineteen_one.ml RESULT = nineteen_one LIBS = str netstring INCDIRS = /usr/local/lib/ocaml/site-lib/netstring all: native-code -include $(OCAMLMAKEFILE) $> make nc ... All good 'till now, but it doesn't run right: $> ./nineteen_one Fatal error: uncaught exception Failure("Cgi.parse_arguments: unknown method") I tried: try Cgi.parse_arguments default_config; with x -> raise x;; but that helped not at all... what other simple thing have I missed? The method is in the cgi.mli. -- ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr