caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Kenneth Adam Miller <kennethadammiller@gmail.com>
To: caml users <caml-list@inria.fr>
Subject: [Caml-list] Recursive dependency issues
Date: Wed, 19 Nov 2014 11:50:07 -0500	[thread overview]
Message-ID: <CAK7rcp8OjeCFoofj6_9fogXgX_zz-yf+r17Q+Cmg+8iWgV8chA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

I have a library that I'm building against. I only consume an interface
from 2 specific directories; there are no other usages throughout my code.
I would like to be able to link against the library, and have the compiler
admit my code so long as it uses the interfaces of the other libraries
correctly. Instead, I'm having to recursively specify all the dependencies
of the library I consume!

I specify the location of my library with -ccopt -L location/to/it and then
afterward, have the cma or the cmxa before I specify my source that is
being compiled.

Should I statically link? What do I do to avoid the dependency hell?

[-- Attachment #2: Type: text/html, Size: 710 bytes --]

             reply	other threads:[~2014-11-19 16:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-19 16:50 Kenneth Adam Miller [this message]
2014-11-19 17:00 ` David Allsopp
2014-11-19 17:15   ` Kenneth Adam Miller
2014-11-19 21:08     ` John Whitington
2014-11-19 21:20       ` Kenneth Adam Miller
2014-12-02 21:02         ` Gerd Stolpmann

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=CAK7rcp8OjeCFoofj6_9fogXgX_zz-yf+r17Q+Cmg+8iWgV8chA@mail.gmail.com \
    --to=kennethadammiller@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).