[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Nicolas Pouillard <nicolas.pouillard@g...> |
| Subject: | Re: [Caml-list] building executables with camlp4 |
On 6/13/07, Jeremy Yallop <jeremy.yallop@ed.ac.uk> 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