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
[Caml-list] Help: module names conflicts
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-09-12 (06:51)
From: Gregoire Sutre <sutre@e...>
Subject: [Caml-list] Help: module names conflicts

I am trying to use two ocaml libraries, but I have name conflicts : these
two libraries both have a 'Pretty' module.

I can compile my modules without a problem since I'm not using this Pretty

But the OCaml compiler complains when I try to link against both libraries,
since it finds two times the Pretty module.

A basic but painful fix is to rename the conflicting modules (I then would
have to go in each file of the library where the module is used to rename

Is there a better way to do this ?

Such as e.g. automatically encapsulate each library in another module (I saw
this idea in a post on module hierarchy, but I don't whether it is

Thanks for your help!


Gregoire Sutre                      545W Cory Hall
sutre@eecs.berkeley.edu             University of California
Phone: (510) 642-1638               Berkeley, CA 94720
ICQ# 25170026                       USA
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr