From: Ashish Agarwal <agarwal1975@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: [Caml-list] findlib gives warning that compiler doesn't
Date: Tue, 4 Aug 2015 16:49:50 -0400 [thread overview]
Message-ID: <CAMu2m2Ly8i+d-c5QUybtT_B4_WjBExi0+E8pHTPJM1Rca0+n5w@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 900 bytes --]
With the file structure shown below, assume you're in directory libb. Then:
$ ocamlc -I ../liba -c a.ml
(* no warnings *)
$ ocamlfind ocamlc -I ../liba -c a.ml
findlib: [WARNING] Interface a.cmi occurs in several directories: ., ../liba
Why does findlib do an extra check that the compiler is okay with? This is
causing problems in a project where I'd like to build several packed
libraries, and one reason for doing so is precisely to reuse module names.
Am I going about this wrong? My goal is that within libb, the only module
from liba that should be visible is Liba.
├── liba
│ ├── a.cmi
│ ├── a.cmo
│ ├── a.ml
│ ├── b.cmi
│ ├── b.cmo
│ ├── b.ml
│ ├── liba.cma
│ ├── liba.cmi
│ └── liba.cmo
└── libb
├── a.cmi
├── a.cmo
└── a.ml
[-- Attachment #2: Type: text/html, Size: 1209 bytes --]
next reply other threads:[~2015-08-04 20:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-04 20:49 Ashish Agarwal [this message]
2015-08-05 15:36 ` Gerd Stolpmann
2015-08-06 19:03 ` Ashish Agarwal
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=CAMu2m2Ly8i+d-c5QUybtT_B4_WjBExi0+E8pHTPJM1Rca0+n5w@mail.gmail.com \
--to=agarwal1975@gmail.com \
--cc=caml-list@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).