From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 9E368BBCA for ; Fri, 21 Mar 2008 18:21:13 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4CANSL40dQRFuwdGdsb2JhbACRDwGYew X-IronPort-AV: E=Sophos;i="4.25,536,1199660400"; d="scan'208";a="8673374" Received: from discorde.inria.fr ([192.93.2.38]) by mail2-smtp-roc.national.inria.fr with ESMTP; 21 Mar 2008 18:21:13 +0100 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m2LHL9cn028074 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Fri, 21 Mar 2008 18:21:13 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4CANSL40dQRFuwdGdsb2JhbACRDwGYew X-IronPort-AV: E=Sophos;i="4.25,536,1199660400"; d="scan'208";a="8673365" Received: from furbychan.cocan.org ([80.68.91.176]) by mail2-smtp-roc.national.inria.fr with ESMTP; 21 Mar 2008 18:21:00 +0100 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1JckvM-0000pn-2v; Fri, 21 Mar 2008 17:21:00 +0000 Date: Fri, 21 Mar 2008 17:21:00 +0000 To: Nicolas Pouillard Cc: OCaml Mailing List Subject: Re: [Caml-list] camlp4 question: Mixing a printer and Ast.fold Message-ID: <20080321172059.GE29482@annexia.org> References: <20080321150639.GA29482@annexia.org> <1206113824-sup-4922@port-ext16.ensta.fr> <20080321164430.GC29482@annexia.org> <1206118122-sup-8330@port-ext16.ensta.fr> <20080321165624.GD29482@annexia.org> <1206118952-sup-1094@port-ext16.ensta.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1206118952-sup-1094@port-ext16.ensta.fr> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Miltered: at discorde with ID 47E3EE85.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 0100,:01 0100,:01 camlp:01 ocamlc:01 lib:01 cmo:01 gettext:01 cmo:01 gettext:01 ocamlc:01 lib:01 ocamlfind:01 -predicates:01 byte:01 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