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=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1EFDFBC6B for ; Wed, 13 Jun 2007 14:23:23 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.236]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5DCNM32021222 for ; Wed, 13 Jun 2007 14:23:22 +0200 Received: by nz-out-0506.google.com with SMTP id s18so168712nze for ; Wed, 13 Jun 2007 05:23:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aailbswDepmAJHqkoxrLR9VrjgtoVo8u8JpKfDmrPb1sHBWZGbPe7iurhyJhhEEJMQ/Rjd5Cj/wGDaKOa0EMYOIPINtPOd3cKTVikzRdexiS5xqP2oPc0Uuvwt/SwbquwRNlajUmBrESSwtyS6cdy1dbgbWVpoaraFNtIIso72s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dFDRLXAbPVjCuxLwtzUHy8bUC1okZXJNszP59BsE0RH4fwq6BU0ttCqfb30/N8VA04QMqjYqHjC1tuRr+rbE1PDjgYxJ1elauSsq4L7PhXD26K/cu69RUHLnDk+U5Cg1ROemRllXbIb8Llhrka7pa+B3gWvblRcefrei/XK1T8A= Received: by 10.114.179.1 with SMTP id b1mr580137waf.1181737400967; Wed, 13 Jun 2007 05:23:20 -0700 (PDT) Received: by 10.114.181.9 with HTTP; Wed, 13 Jun 2007 05:23:20 -0700 (PDT) Message-ID: Date: Wed, 13 Jun 2007 14:23:20 +0200 From: "Nicolas Pouillard" To: "Jeremy Yallop" Subject: Re: [Caml-list] building executables with camlp4 Cc: caml-list@inria.fr In-Reply-To: <466FCB46.1070304@ed.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <466FCB46.1070304@ed.ac.uk> X-j-chkmail-Score: MSGID : 466FE1BA.000 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 466FE1BA.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 cmx:01 lib:01 cmxa:01 parsers:01 cmx:01 parsers:01 -linkall:01 cmxa:01 unix:01 wrote:01 caml-list:01 executables:01 bin:01 On 6/13/07, Jeremy Yallop wrote: > With the 3.09 version of camlp4 I could build an executable for my > extension by linking against various .cmx files. Is it possible to do > something similar with the new camlp4 in 3.10? I've tried linking with Yes > > camlp4lib.cmxa A good starting point > Camlp4Parsers/Camlp4OCamlRevisedParser.cmx > Camlp4Parsers/Camlp4OCamlParser.cmx > Camlp4Printers/Camlp4OCamlRevisedPrinter.cmx Why not > Camlp4Printers/Camlp4OCamlPrinter.cmx This is indeed useless, the real printer is in the Camlp4 package, and Camlp4Printers/Camlp4OCamlPrinter is a dummy module to enable it. It really depends on what you want to do, if you want to build your own camlp4 (using Camlp4Bin) then you are in the good path (don't miss unix, and -linkall). If you want use camlp4 as a library and then certainly don't rely on the Camlp4.Register module you can try camlp4fullib.cmxa. [...] > In case it makes things simpler I'm using OCamlMakefile, Not specially. -- Nicolas Pouillard