Am Donnerstag, den 19.09.2013, 12:36 +0100 schrieb Matej Kosik: > Hi, > > If my program contains "__LOCATION__" macro, I can get it compiled with the following instructions: > > ocamlfind ocamlc -package camlp4.gramlib -pp camlp4of main.ml -o main.cmo -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 > > If my program contains "with sexp" macro, I can get it compiled with the following instructions: > > ocamlfind ocamlc -package sexplib,sexplib.syntax -syntax camlp4o main.ml -o main.cmo -c > ocamlfind ocamlc -package sexplib,sexplib.syntax -linkpkg main.cmo -o main > > Is it technically possible to to compile a program where I use both "__LOCATION__" 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 > > Thank you very much, in advance, for the help. > -- ------------------------------------------------------------ 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 ------------------------------------------------------------