From: Mike Potanin <potanin@mccme.ru>
To: caml-list@inria.fr
Subject: [Caml-list] Camlp4 not work with ocamlc.
Date: Tue, 10 Dec 2002 18:23:06 +0300 (MSK) [thread overview]
Message-ID: <Pine.LNX.4.44.0212101800060.6509-100000@mccme.ru> (raw)
I make simple preprocesor, and it work:
bash$ ocamlc -a -o tr.cma -I /usr/local/lib/ocaml/camlp4 tr_lexer.cmo
tr_parser.cmo tr.ml
bash$ ocaml
Objective Caml version 3.06
# #load "camlp4o.cma";;
Camlp4s Parsing version 3.06
# #load "tr.cma";;
# <:tr_some<a-z/A-Z>> 'a';;
- : char option = Some 'A'
#
It is correct. But this command produce errors:
bash$ camlp4 pa_o.cmo ./tr.cma pr_o.cmo test.ml
Error while loading "./tr.cma": no implementation available for Tr_parser.
bash$ ocamlc -pp "camlp4o ./tr.cma" -c -I "`camlp4 -where`" test.ml
Error while loading "./tr.cma": no implementation available for Tr_parser.
Preprocessor error
How do fix it?
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next reply other threads:[~2002-12-10 15:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-10 15:23 Mike Potanin [this message]
2002-12-10 17:27 ` Daniel de Rauglaudre
2002-12-10 18:49 ` Mike Potanin
2002-12-10 19:21 ` Daniel de Rauglaudre
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=Pine.LNX.4.44.0212101800060.6509-100000@mccme.ru \
--to=potanin@mccme.ru \
--cc=caml-list@inria.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