caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: "Sébastien Hinderer" <Sebastien.Hinderer@inria.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Dynlink
Date: Wed, 09 Sep 2015 18:03:19 +0200	[thread overview]
Message-ID: <1441814599.2811.6.camel@thinkpad.lan.sumadev.de> (raw)
In-Reply-To: <20150909134401.GA4359@pl-59055.rocqadm.inria.fr>

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

Am Mittwoch, den 09.09.2015, 15:44 +0200 schrieb Sébastien Hinderer:
> Dear Xavier,
> 
> Many thanks for your response.
> 
> > You can't get more precise than the configure script of OCaml :-)
> 
> Sure!
> 
> > > Is there a way for a configure script to programmatically determine the
> > > availability of the feature on one given platform?
> > 
> > Just check for the presence of dynlink.cmxa in OCaml's standard
> > library directory.
> 
> OK! Quitesimple,thanks.
> 
> So am I correct that the question ``is Dynlink supported'' only makes
> sense when one compiles a native-code program, because this always works
> for byte-code?

The question makes also a lot of sense for bytecode, because not all
platforms can load dll's. Bytecode that does not need additional dll's
can always be loaded.

On the command-line you can check with something like

echo '' | ocaml unix.cma -stdin

(unchecked, let's hope the error is correctly propagated). E.g. an
unsupported platform used to be Cygwin.

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    gerd@gerd-stolpmann.de
My OCaml site:          http://www.camlcity.org
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
------------------------------------------------------------


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2015-09-09 16:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09 13:09 Sébastien Hinderer
2015-09-09 13:19 ` Olivier Andrieu
2015-09-09 13:29   ` Sébastien Hinderer
2015-09-09 13:34     ` Xavier Leroy
2015-09-09 13:44       ` Sébastien Hinderer
2015-09-09 16:03         ` Gerd Stolpmann [this message]
2015-09-10 12:08           ` Sébastien Hinderer
2015-09-10 16:57             ` Gerd Stolpmann
2015-09-09 13:25 ` Gabriel Scherer
  -- strict thread matches above, loose matches on Subject: below --
2004-04-06  2:51 [Caml-list] dynlink Pietro Abate
2004-04-06  5:58 ` Nicolas Cannasse
2004-04-06  7:46   ` Pietro Abate
2002-01-07 20:49 [Caml-list] Dynlink Warp
2002-01-08 21:43 ` Warp

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=1441814599.2811.6.camel@thinkpad.lan.sumadev.de \
    --to=info@gerd-stolpmann.de \
    --cc=Sebastien.Hinderer@inria.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).