caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Camlp4 not work with ocamlc.
@ 2002-12-10 15:23 Mike Potanin
  2002-12-10 17:27 ` Daniel de Rauglaudre
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Potanin @ 2002-12-10 15:23 UTC (permalink / raw)
  To: caml-list


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-10 19:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-10 15:23 [Caml-list] Camlp4 not work with ocamlc Mike Potanin
2002-12-10 17:27 ` Daniel de Rauglaudre
2002-12-10 18:49   ` Mike Potanin
2002-12-10 19:21     ` Daniel de Rauglaudre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).