English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Behavior of camlp4o when used with -pp?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-02-10 (20:20)
From: David Rajchenbach-Teller <David.Teller@e...>
Subject: Behavior of camlp4o when used with -pp?
    Dear list,
 I'm currently faced with a weird behaviour (bug?) of camlp4.

Assuming the existence of a file foo.ml, possibly empty.

camlp4o -no_comments foo.ml

understands option "-no_comments" correctly and pretty-prints the
contents of foo.ml, minus comments

However, when using camlp4o as a preprocessor,

ocamlc -i -pp "camlp4o -no_comments" foo.ml
-no_comments: unknown or misused option
Use option -help for usage
File "foo.ml", line 1, characters 0-1:
Error: Preprocessor error

Is this normal? Is there a workaround for this?


David Teller-Rajchenbach
 Security of Distributed Systems
   « Ce matin Un crétin A tué un chercheur. » (air connu)
   Latest News of French Research: System being liquidated. Researchers angry.