Browse thread
[Caml-list] OcamlMakefile not working for me...
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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:
(* 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