caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Compiling a library with findlib
@ 2007-05-14  7:06 Sébastien Hinderer
  2007-05-14 17:37 ` [Caml-list] " Eric Cooper
  0 siblings, 1 reply; 6+ messages in thread
From: Sébastien Hinderer @ 2007-05-14  7:06 UTC (permalink / raw)
  To: caml-list

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-15 13:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-14  7:06 Compiling a library with findlib Sébastien Hinderer
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

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).