Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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             University of California
Phone: (510) 642-1638               Berkeley, CA 94720
ICQ# 25170026                       USA
Bug reports:  FAQ:
To unsubscribe, mail  Archives: