caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Nicolas Pouillard <nicolas.pouillard@gmail.com>
Cc: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] camlp4 question: Mixing a printer and Ast.fold
Date: Fri, 21 Mar 2008 17:21:00 +0000	[thread overview]
Message-ID: <20080321172059.GE29482@annexia.org> (raw)
In-Reply-To: <1206118952-sup-1094@port-ext16.ensta.fr>

On Fri, Mar 21, 2008 at 06:03:15PM +0100, Nicolas Pouillard wrote:
> Excerpts from Richard W.M. Jones's message of Fri Mar 21 17:56:25 +0100 2008:
> > On Fri, Mar 21, 2008 at 05:50:00PM +0100, Nicolas Pouillard wrote:
> > > Excerpts from Richard W.M. Jones's message of Fri Mar 21 17:44:30 +0100 2008:
> > > > I'm trying to link the camlp4 module into a binary, by doing:
> > > > 
> > > >   ocamlc -I +camlp4 camlp4lib.cma Camlp4Bin.cmo pr_gettext.cmo \
> > > >     -o ocaml-xgettext
> > > > 
> > > > but my binary always prints out:
> > > > 
> > > >   Failure: "No implementation printer"
> > > > 
> > > > Apparently I need to somehow register the printer as well?  I can't
> > > > work out how to do that though.
> > > 
> > > What version of pr_gettext are you using?
> > 
> > Well, no version -- I'm trying to make Sylvain Le Gall's pr_gettext
> > work with camlp4 3.10.  It has to be linked into a standalone binary
> > called ocaml-xgettext, but I can't work out how to do that.
> > 
> > Previously Sylvain was using mkcamlp4, but that is broken.
> 
> I mean between different proposals for pr_gettext.ml, in this thread.

I was using Jeremy Yallop's simple version (same as your first
version).  I got it to work by linking it as follows:

	$(OCAMLC)                                                            \
           -I +camlp4 camlp4lib.cma                                          \
           unix.cma                                                          \
          `$(OCAMLFIND) query -r -predicates byte gettext.extract -i-format` \
          `$(OCAMLFIND) query -r -predicates byte gettext.extract -a-format` \
          `$(OCAMLFIND) query -r -predicates byte gettext.extract -o-format` \
           Camlp4Bin.cmo                                                     \
          -o $@

Rich.

-- 
Richard Jones
Red Hat


  reply	other threads:[~2008-03-21 17:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-21 15:06 Richard Jones
2008-03-21 15:36 ` [Caml-list] " Jeremy Yallop
2008-03-21 15:51   ` Richard Jones
2008-03-21 15:46 ` Nicolas Pouillard
2008-03-21 15:58   ` Richard Jones
2008-03-26  9:29     ` Sylvain Le Gall
2008-03-21 16:44   ` [Caml-list] " Richard Jones
2008-03-21 16:50     ` Nicolas Pouillard
2008-03-21 16:56       ` Richard Jones
2008-03-21 17:03         ` Nicolas Pouillard
2008-03-21 17:21           ` Richard Jones [this message]
2008-03-21 20:19             ` Richard Jones

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=20080321172059.GE29482@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=nicolas.pouillard@gmail.com \
    /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).