From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA07538; Tue, 10 Dec 2002 16:08:29 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA07421 for ; Tue, 10 Dec 2002 16:08:28 +0100 (MET) Received: from ns.mccme.ru ([195.133.68.22]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gBAF8Q103035 for ; Tue, 10 Dec 2002 16:08:27 +0100 (MET) Received: from mccme.ru (potanin@mccme.ru [195.178.198.7]) by ns.mccme.ru (8.8.5/8.8.5) with SMTP id SAA08448 for ; Tue, 10 Dec 2002 18:01:26 +0300 Date: Tue, 10 Dec 2002 18:23:06 +0300 (MSK) From: Mike Potanin To: caml-list@inria.fr Subject: [Caml-list] Camlp4 not work with ocamlc. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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';; - : 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