caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: ygrek <ygrekheretix@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] library naming conflict
Date: Wed, 30 Mar 2011 00:04:22 +0300	[thread overview]
Message-ID: <20110330000422.f7301a81.ygrekheretix@gmail.com> (raw)
In-Reply-To: <AANLkTi=j2ajEbzpb_RvNmxJQq8FnD3JQ=8UzgzRsTLa=@mail.gmail.com>

On Mon, 28 Mar 2011 23:47:38 -0400
Niki Yoshiuchi <aplusbi@gmail.com> wrote:

> Naming my ocaml library "portmidi" causes linking problems.  It seems to be
> from a conflict when linking the C-library "-lportmidi" (the linker tries to
> link with the local libportmidi.a file instead of the file in /usr/lib).  My
> solution at the moment is to just give my ocaml library a different name,
> however I'd prefer to name it "portmidi".
> 
> Is there a simple fix?

Use a different name for cma file but keep "portmidi" findlib package name?

PS I guess ocaml compiler could easily solve this annoyance by choosing some unique prefix/postfix
for cmxa native library counterpart (i.e. xxx,cma -> xxx_caml.a), and this should not break
any code out there?

-- 
 ygrek
 http://ygrek.org.ua

      reply	other threads:[~2011-03-29 21:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-29  3:47 Niki Yoshiuchi
2011-03-29 21:04 ` ygrek [this message]

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=20110330000422.f7301a81.ygrekheretix@gmail.com \
    --to=ygrekheretix@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).