Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] OcamlMakefile not working for me...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michael Leary <leary@n...>
Subject: Re: [Caml-list] OcamlMakefile not working for me...
OK, figured out the rest of it... I wasn't familar with the method for
using a package.  Roughly:

(* *)
open Printf;;
open Cgi;;
parse_arguments default_config;
let value = argument_value("foo");;
printf "%s" value;;

# makefile
OCAMLMAKEFILE = ./OcamlMakefile
RESULT = nineteen_one
LIBS = str netstring
INCDIRS = /usr/local/lib/ocaml/site-lib/netstring
all: native-code

$> 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:

	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:  FAQ:
To unsubscribe, mail  Archives: