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: blue storm <bluestorm.dylc@g...>
Subject: Re: [Caml-list] Ocamlfind with camlp4r.
I don't understand the subtleties of the "-syntax" option, but using
"-pp camlp4r" instead works fine :
Besides, the camlp4 package isn't necessary if your code doesn't use
any of the camlp4 libraries (or quotations/whatever).

$ ocamlfind ocamlc -o test -pp camlp4r -linkpkg ./test.ml

On Sat, Jul 18, 2009 at 1:18 AM, Serge Leblanc<serge.leblanc@orange.fr> wrote:
> I don't understand what is wrong with Ocamlfind. Does someone can help me ?
>
> echo "value store buf s = do { Buffer.add_string buf s ; buf } ;" > test.ml
> ocamlc -o test -pp "camlp4r" -I +camlp4 camlp4lib.cma ./test.ml
> ocamlfind ocamlc -o test -package "camlp4" -linkpkg  -syntax "camlp4r"
> ./test.ml
> File "./test.ml", line 1, characters 16-17:
> Parse error: [expr] expected after [infix operator (level 0) (comparison
> operators, and some others)] (in [expr])
> Preprocessor error
>
> --
> Serge Leblanc
> gpg --keyserver  hkp://keyserver.ubuntu.com:11371 --recv-keys 0x33243C1B
> Fingerprint = 066C 005F 5595 D85C 7673  D969 1DD4 90C4 3324 3C1B
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs