Browse thread
building executables with camlp4
[
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: | Jeremy Yallop <jeremy.yallop@e...> |
| Subject: | Re: [Caml-list] building executables with camlp4 |
Nicolas Pouillard wrote: >> But this doesn't: >> >> $ ocamlc -g -linkall -I /usr/local/ocaml/lib/ocaml/camlp4 \ >> -o minimal \ >> camlp4lib.cma \ >> unix.cma \ >> Camlp4Parsers/Camlp4OCamlRevisedParser.cmo \ >> Camlp4Parsers/Camlp4OCamlParser.cmo \ >> Camlp4Printers/Camlp4OCamlPrinter.cmo \ >> Camlp4Bin.cmo \ >> minimal.cmo >> $ ./minimal input.ml >> File "input.ml", line 1, characters 35-36: >> Parse error: ident_of_ctyp: this type is not an identifier > > Try to put Camlp4Bin before minimal, since it's the main so the init > section of this module is the starting point. Sorry, I don't follow. Camlp4Bin is before minimal above, right? If I reverse the order of Camlp4Bin.cmo and minimal.cmo I get Not_found errors again when I run the program. Jeremy.