Version française
Home     About     Download     Resources     Contact us    
Browse thread
Ocamlfind with camlp4r.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jake Donham <jake@d...>
Subject: Re: [Caml-list] Ocamlfind with camlp4r.
On Fri, Jul 17, 2009 at 4:18 PM, Serge Leblanc<serge.leblanc@orange.fr> wrote:
> ocamlfind ocamlc -o test -package "camlp4" -linkpkg  -syntax "camlp4r" ./test.ml

It's useful to add the -verbose option (after ocamlc) to see what
options are passed to camlp4. In this case it's getting the -rp
option, which is apparently
(http://brion.inria.fr/gallium/index.php/Using_Camlp4) the extension
for writing parsers in the revised syntax. Not sure why that breaks
your program, or why Ocamlfind includes it with -syntax camlp4r.

Jake