caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Vu Ngoc San <san.vu-ngoc@ujf-grenoble.fr>
To: caml-list@inria.fr
Subject: dynamically finding libraries
Date: Thu, 15 Mar 2007 14:42:47 +0100	[thread overview]
Message-ID: <45F94D57.9010009@ujf-grenoble.fr> (raw)

I have a program compiled to native code on a linux machine, which uses 
some more-or-less "standard" library like libpangocairo-1.0.so.0.
Since this library is not universally present on all linux boxes, I 
suspect it might be not so easy for an average user to install it. 
Moreover, it's very small. Therefore I decide to ship it with my software.

The question is: is there a way to decide, at run-time, whether the user 
already has this library or not ? If so, I can ignore (and even delete) 
the version I shipped, and use the user's library. If not, I fall back 
on "my" version.


San


PS: sorry for the first message which appeared - at least with my news 
reader (icedove) - in the wrong thread.



             reply	other threads:[~2007-03-15 13:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-15 13:42 Vu Ngoc San [this message]
     [not found] ` <1173969084.11071.16.camel@rosella.wigram>
2007-03-15 14:56   ` [Caml-list] " Vu Ngoc San
  -- strict thread matches above, loose matches on Subject: below --
2007-03-14 22:25 Style and organization of code ian
2007-03-15 13:38 ` dynamically finding libraries Vu Ngoc San

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=45F94D57.9010009@ujf-grenoble.fr \
    --to=san.vu-ngoc@ujf-grenoble.fr \
    --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).