caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* packed packages
@ 2009-03-29 21:17 Jacques Le Normand
  0 siblings, 0 replies; only message in thread
From: Jacques Le Normand @ 2009-03-29 21:17 UTC (permalink / raw)
  To: caml-list caml-list


[-- Attachment #1.1: Type: text/plain, Size: 859 bytes --]

Dear Caml list,
I'm posting here because I don't know where else to post. I've packed a
small library using findlib. The package contains 2 files: Test.ml and
Foo.ml, with only Test.cmi being exported.
If I try to use this package in a project with a file called Foo.ml, I get
the following error:

Files Main.cmx and Foo.cmx make inconsistent assumptions over interface Foo

how can I fix this?
renaming the modules in my library would help, but I have no way of ensuring
that the user will never use those names.
I've attached a small test case demonstrating what I've just said. This is
how you'd use it:

unzip
go into findlib directory
type make install
go into the omake directory
type make

you should get the error at this point. Note that this will install a
package called test (which you can remove later on with the command
ocamlfind remove test)

[-- Attachment #1.2: Type: text/html, Size: 950 bytes --]

[-- Attachment #2: test_case.tar.gz --]
[-- Type: application/x-gzip, Size: 7721 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-29 21:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-29 21:17 packed packages Jacques Le Normand

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