caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Help: module names conflicts
@ 2001-09-12  0:10 Gregoire Sutre
  2001-09-12  7:13 ` Sven
  0 siblings, 1 reply; 2+ messages in thread
From: Gregoire Sutre @ 2001-09-12  0:10 UTC (permalink / raw)
  To: caml-list

Hi,

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
module.

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
it...).

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
implemented).

Thanks for your help!

Greg.

-- 
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-12  7:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-12  0:10 [Caml-list] Help: module names conflicts Gregoire Sutre
2001-09-12  7:13 ` Sven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).