caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Michael Leary <leary@nwlink.com>
To: caml <caml-list@inria.fr>
Subject: Re: [Caml-list] OcamlMakefile not working for me...
Date: Mon, 27 Aug 2001 02:59:06 -0700	[thread overview]
Message-ID: <20010827025906.A9673@jean.nwlink.com> (raw)
In-Reply-To: <20010827011635.A8827@jean.nwlink.com>; from leary@nwlink.com on Mon, Aug 27, 2001 at 01:16:35AM -0700

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


  reply	other threads:[~2001-08-27  9:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-27  4:39 Michael Leary
2001-08-27  8:16 ` Michael Leary
2001-08-27  9:59   ` Michael Leary [this message]
2001-08-27 10:11     ` Michael Leary
2001-08-27 12:01     ` Alain Frisch
2001-08-27 22:10       ` Michael Leary
2001-08-28  0:39       ` Gerd Stolpmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010827025906.A9673@jean.nwlink.com \
    --to=leary@nwlink.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).