English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
syntax extensions using batteries
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-05-20 (19:08)
From: Tiphaine Turpin <Tiphaine.Turpin@i...>
Subject: syntax extensions using batteries

I can't use the syntax extension I just wrote : I don't know how to make
camlp4 load a module which depends on batteries.

First attempt: if I do something like

    ocamlfind batteries/ocamlc -pp "camlp4o pa_prolog.cmo"

then pa_prolog is never loaded.

Second attempt: if I try

    ocamlfind batteries/ocamlc -ppopt pa_prolog.cmo

then I have to also add -ppopt batteries.cma, then sexplib.cma, which
fails due to unavailable native functions.

However, the extension works fine in the toplevel (ocamlfind

Any Ideas ? How can I achieve "batteries/camlp4" ?