Re: [Caml-list] compiling static preprocessors

Thomas Gazagnaire
2012-03-01T22:25:47Z

> Camlp4Bin.cmo must be the last file on the command line.

Thanks Jérémie, this indeed fixes part of the problem. Now, I get a new error message:

Fatal error: exception Not_found
Raised at file "camlp4/Camlp4/Struct/Grammar/Delete.ml", line 131, characters 16-25
Called from file "camlp4/Camlp4/Struct/Grammar/Delete.ml", line 146, characters 17-56
Called from file "lib/pa_type_conv.ml", line 421, characters 12-62

where pa_type_conv.ml:421 is:

DELETE_RULE Gram str_item: "module"; a_UIDENT; module_binding0 END;

So I suppose the OCaml grammar is not yet registered when type-conv tries to remove the rule. Oh dear... Any thoughts on this one?

--
Thomas