From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 001E27EE49 for ; Thu, 19 Sep 2013 17:17:02 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=pra; client-ip=212.227.126.171; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of info@gerd-stolpmann.de) identity=mailfrom; client-ip=212.227.126.171; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="info@gerd-stolpmann.de"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@moutng.kundenserver.de designates 212.227.126.171 as permitted sender) identity=helo; client-ip=212.227.126.171; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="info@gerd-stolpmann.de"; x-sender="postmaster@moutng.kundenserver.de"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkUCAE0UO1LU436rlGdsb2JhbABbgz+De74DgSAWDgEBAQEHCwsJEiqCJQEBBAEjVhALQgICVwYTCYd0CginY5ImiT+GAiYHgmmBNQOOeooxhQKOag X-IPAS-Result: AkUCAE0UO1LU436rlGdsb2JhbABbgz+De74DgSAWDgEBAQEHCwsJEiqCJQEBBAEjVhALQgICVwYTCYd0CginY5ImiT+GAiYHgmmBNQOOeooxhQKOag X-IronPort-AV: E=Sophos;i="4.90,937,1371074400"; d="asc'?scan'208";a="33560843" Received: from moutng.kundenserver.de ([212.227.126.171]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Sep 2013 17:17:01 +0200 Received: from office1.lan.sumadev.de (dslb-088-069-147-195.pools.arcor-ip.net [88.69.147.195]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0Lkxnh-1Vwpbc1LLZ-00ajvu; Thu, 19 Sep 2013 17:17:01 +0200 Received: from [192.168.5.106] (dslb-088-069-147-195.pools.arcor-ip.net [88.69.147.195]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id EFF16C00CF; Thu, 19 Sep 2013 17:17:00 +0200 (CEST) Message-ID: <1379603809.11824.18.camel@thinkpad> From: Gerd Stolpmann To: Matej Kosik <5764c029b688c1c0d24a2e97cd764f@gmail.com> Cc: caml-list@inria.fr Date: Thu, 19 Sep 2013 17:16:49 +0200 In-Reply-To: <523AE1BE.8090808@gmail.com> References: <523AE1BE.8090808@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Jr5Z3yW11RxN9NJnSfg+" X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 X-Provags-ID: V02:K0:y1OM4JwjcVWOgFGJ5hGrlCqozatcAryRd74OTj/GOZe PGSfvgMeOolGjNVwLK5RQ9Y3/399j4ihgB1TtCQ4qI5T2UGJmC Ar3CErCivru5aXc08RbYRsT1/uceP4Iv9tVHGpf+2YE8965eZa /OacI8ktiM+O1cvAf1DwvgYTYPGPw3t1sk9viPFC30TdNkzlCt m7qvTKvedRyZZg3bO4L+GShKxMXu1Y3Vn2JUdZpL0VT25WJzAJ 7MunY4HQr/mx49+EFeyMOGb1OU2KeuomkY1QrfuD6kibFV+kbG DYM3kpL1iwUZJH9+526V51+zOjcVLGLY7TMG8j7SEE1IDjJGMm 7qZ7T063ArnLSRqZpcpKIFEVCtI3xZz7wiQREnD84 Subject: Re: [Caml-list] a question about compilation ... [sexplib; gramlib] --=-Jr5Z3yW11RxN9NJnSfg+ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Am Donnerstag, den 19.09.2013, 12:36 +0100 schrieb Matej Kosik: > Hi, >=20 > If my program contains "__LOCATION__" macro, I can get it compiled with t= he following instructions: >=20 > ocamlfind ocamlc -package camlp4.gramlib -pp camlp4of main.ml -o main.cm= o -c > ocamlfind ocamlc -package camlp4.gramlib -linkpkg main.cmo -o main I don't know where you have this from, but this is not the right way of doing it. Better: ocamlfind ocamlc -package camlp4.macro -syntax camlp4o main.ml -c >=20 > If my program contains "with sexp" macro, I can get it compiled with the = following instructions: >=20 > ocamlfind ocamlc -package sexplib,sexplib.syntax -syntax camlp4o main.ml= -o main.cmo -c > ocamlfind ocamlc -package sexplib,sexplib.syntax -linkpkg main.cmo -o ma= in >=20 > Is it technically possible to to compile a program where I use both "__LO= CATION__" as well as "with sexp" macros? > (like the attached sample) Combined: ocamlfind ocamlc -package camlp4.macro,sexplib,sexplib.syntax -syntax camlp4o main.ml -c Gerd >=20 > Thank you very much, in advance, for the help. >=20 --=20 ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de Creator of GODI and camlcity.org. Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------ --=-Jr5Z3yW11RxN9NJnSfg+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAABAgAGBQJSOxViAAoJEAaM4b9ZLB5TzKQIAImI1brrdtVl0CHlJFyfpdan HpxQoFU9lxm0AjG7nCgbdBsDEvCL0q/poJ/JeoGqDy06Xh7GawGSeOnlRTZmsPpC Gi8jk3J+vFB0/oShqwfuhAygyddXamNgJjVvFlQWsYxUJXpcGuYqtxix7Vc5wew6 6J5orUyxC7L095Aty6d1RvqQ1sWGoBPEAKO5nBujKfDCkAAxB8R7LTqaHLTpULI5 A5kmD79FHUIHKRBU3eqT8GQ+vN+dsab2YnRRk+DCK1b6T1r7hAqgoFVFPKWOUA9f Y2BgSLl1wKZ9MCHmpzd6gMFFypSXlXmsRxZl2KQBpBAbayenW5MTelW9fvl/vFQ= =hp4M -----END PGP SIGNATURE----- --=-Jr5Z3yW11RxN9NJnSfg+--