caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tiphaine Turpin <Tiphaine.Turpin@irisa.fr>
To: caml-list@yquem.inria.fr
Subject: syntax extensions using batteries
Date: Wed, 20 May 2009 21:07:48 +0200	[thread overview]
Message-ID: <4A145504.4000604@irisa.fr> (raw)

Hi,

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
batteries/ocaml).

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



                 reply	other threads:[~2009-05-20 19:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A145504.4000604@irisa.fr \
    --to=tiphaine.turpin@irisa.fr \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).