Hello, On 02-08-2011, Philippe Veber <[email protected]> wrote: > > --bcaec54ee94203b60304a98d2f09 > Content-Type: text/plain; charset=ISO-8859-1 > > Well, it seems that I have a much simpler problem (and it is not related to > camlp4of specifically): the only thing I'm missing is a '-syntax camlp4o' > when compiling the library. Indeed, adding: > ><src/syntax/*>: syntax_camlp4o > > at the end of _tags fixes the problem. I must have forgotten an option in > the _oasis file, but I can't see which. Anyway, many thanks William ! > ph. >
Indeed, you need syntax_camlp4o (which is one of the two allowed syntax tag with syntax_camlp4r, wrt to ocamlfind). You have done exactly what is needed to enable it (add it to _tags after OASIS section). In fact, camlp4of is just camlp4o with extra modules: gildor@yotta(sid-amd64/chroot):~$ camlp4of -loaded-modules Camlp4.Printers.OCaml Camlp4GrammarParser Camlp4ListComprenhsion Camlp4MacroParser Camlp4OCamlParser Camlp4OCamlParserParser Camlp4OCamlRevisedParser Camlp4OCamlRevisedParserParser Camlp4QuotationExpander gildor@yotta(sid-amd64/chroot):~$ camlp4o -loaded-modules Camlp4.Printers.OCaml Camlp4OCamlParser Camlp4OCamlParserParser Camlp4OCamlRevisedParser Camlp4OCamlRevisedParserParser You can get this extra modules, using extra tags <src/syntax/*>: syntax_camlp4o, pkg_camlp4.gramlib, pkg_camlp4.macro Full syntax support should be an oasis 0.3 feature. Cheers, Sylvain Le Gall -- My company: http://www.ocamlcore.com Linkedin: http://fr.linkedin.com/in/sylvainlegall Start an OCaml project here: http://forge.ocamlcore.org OCaml blogs: http://planet.ocamlcore.org -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
