caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Le Normand <rathereasy@gmail.com>
To: caml-list caml-list <caml-list@yquem.inria.fr>
Subject: packed packages
Date: Sun, 29 Mar 2009 17:17:52 -0400	[thread overview]
Message-ID: <f74178430903291417r374232b5w6a9cddb3ec4911@mail.gmail.com> (raw)


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

                 reply	other threads:[~2009-03-29 21:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f74178430903291417r374232b5w6a9cddb3ec4911@mail.gmail.com \
    --to=rathereasy@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).