From: blue storm <bluestorm.dylc@gmail.com>
To: Serge Leblanc <serge.leblanc@orange.fr>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Ocamlfind with camlp4r.
Date: Sat, 18 Jul 2009 11:10:18 +0200 [thread overview]
Message-ID: <527cf6bc0907180210q10f78309o278d426e6eb1957d@mail.gmail.com> (raw)
In-Reply-To: <1247872689.4422.135.camel@serge2>
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
next prev parent reply other threads:[~2009-07-18 9:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-17 23:18 Serge Leblanc
2009-07-18 9:10 ` blue storm [this message]
2009-07-18 16:35 ` [Caml-list] " Jake Donham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=527cf6bc0907180210q10f78309o278d426e6eb1957d@mail.gmail.com \
--to=bluestorm.dylc@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=serge.leblanc@orange.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox