From: "Sébastien Hinderer" <Sebastien.Hinderer@ens-lyon.org>
To: caml-list@yquem.inria.fr
Subject: Compiling a library with findlib
Date: Mon, 14 May 2007 09:06:09 +0200 [thread overview]
Message-ID: <20070514070609.GA3876@galois> (raw)
Dear all,
I am wondering what would be cleanest way of compiling a library
including C stubs using the ocamlfind program.
The library consists in the files lib.ml, lib.mli, lib_stubs.c and
constants.ml which is generated by awk scripts from C sources.
For the moment, the configure script detects wether ocamlfind is
installed or not. If it is not installed, ocamlmklib is used and
produces lib.cma, lib.cmxa, lib.a and lib.so which all seem to be
useful.
When ocamlfind is installed, though, I have no idea how to produce lib.a
and lib.so which seem to be necessary.
In particular, ocamlfind does not seem to have an interface to the
ocamlmklib connand.
So the questions I have are:
1. Is it necessary to compile/install the lib;a and lib.so files ?
2. How can these files be produced (in addition to the .cma and .cmxa
files) on a system where ocamlfindlib is installed ?
Thanks a lot for your help,
Sébastien.
next reply other threads:[~2007-05-14 7:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-14 7:06 Sébastien Hinderer [this message]
2007-05-14 17:37 ` [Caml-list] " Eric Cooper
2007-05-15 9:09 ` Sébastien Hinderer
2007-05-15 10:06 ` [Caml-list] " Robert Roessler
2007-05-15 13:04 ` Eric Cooper
2007-05-15 13:22 ` Sébastien Hinderer
[not found] <20070514100005.459F6BC70@yquem.inria.fr>
2007-05-14 10:52 ` [Caml-list] " David Allsopp
2007-05-14 13:46 ` Sébastien Hinderer
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=20070514070609.GA3876@galois \
--to=sebastien.hinderer@ens-lyon.org \
--cc=caml-list@yquem.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