From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q0H2pdIM018672 for ; Tue, 17 Jan 2012 03:51:39 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvoBADfhFE+GoCGihWdsb2JhbABErDCBLgEBAQgNCwUWJYIxQAE8FhgDAgECAVgBBwEBvhaIcgEHBRQEAQ4FAQEFAwQNBQsEAgQBBQgFBBEFAQYBAQYBBQclAQIBAQIDAQIBAQEBAhYVAwEGDAcCAgMdAwEGCQIBDQEBAwsCCwILAwEBCYFCGiJAgxwEiDmMWIVRjH8 X-IronPort-AV: E=Sophos;i="4.71,521,1320620400"; d="scan'208";a="127505914" Received: from postman2.riken.jp (HELO postman.riken.jp) ([134.160.33.162]) by mail4-smtp-sop.national.inria.fr with ESMTP; 17 Jan 2012 03:51:33 +0100 Received: from postman.riken.jp (postman2.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id 51DF912602A9; Tue, 17 Jan 2012 11:51:32 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id 3DE911270063; Tue, 17 Jan 2012 11:51:32 +0900 (JST) Message-ID: <4F14E234.7000407@riken.jp> Date: Tue, 17 Jan 2012 11:51:32 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16 MIME-Version: 1.0 To: caml-list@yquem.inria.fr CC: ocaml_beginners@yahoogroups.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.1.16.141514 Subject: [Caml-list] OASIS help : adding -pp camlp4of and camlp4.gramlib to the compilation flags Hello, I'd like to preprocess some source files. Gabriel Scherer advised me to use the options mentioned in the title of this e-mail. What should I modify in an oasis project in order to add these compilation flags? I guess something should be added to the _oasis file. I did not find anything in the oasis documentation about using a preprocessor. Here is an example build command that works, issued by a Makefile for the moment: ocamlfind ocamlopt -package camlp4.gramlib,batteries -linkpkg -o test_logger -annot -g -pp camlp4of logger.ml test_logger.ml Thanks a lot, Francois.