Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Camlp4 not work with ocamlc.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] Camlp4 not work with ocamlc.
Hi,

On Tue, Dec 10, 2002 at 09:49:48PM +0300, Mike Potanin wrote:

> I place complite example at http://wtk.ru/pm/fp/caml/tr.tgz bat currently
> it "raw". I wont make "syntax sugar" - tr-command like Perl.
> <:tr<a-z/A-Z>> "asdf" work from top, but can not comlile:
> 
> bash$ ocamlc -pp "camlp4o ./tr.cma" test.ml
> Error while loading "./tr.cma": no implementation available for Tr_parser.
> Preprocessor error

Ok I see.

This is probably because of the module Dynlink of OCaml which needed
that the interfaces was internally recorded with the program
"extract_crc". The "no implementation available" seems to be rather
"no interface available".

In the current version of Dynlink, it is no more necessary, and in my
version, your example works perfectly well. It will be ok in next
release of OCaml.

-- 
Daniel de RAUGLAUDRE
http://cristal.inria.fr/~ddr/
-------------------
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