caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Dbm: linking problem
@ 2004-04-23 15:34 Sebastien Ferre
  2004-04-23 15:32 ` Gerd Stolpmann
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Ferre @ 2004-04-23 15:34 UTC (permalink / raw)
  To: caml-list

Hello,

I try to build a cross-platform program that uses the
Dbm library. More specifically, I want to use a version
of DBM that allows for arbitrary size data (like GDBM,
unlike DBM).

On my RedHat station, it works fine as 'libndbm.a' is
linked to 'libdb2.a'. (One database file is created with
extension 'db'.)

But on a Solaris station, I got the Dbm_error("dbm_store failed"),
and from my experiments it seems that this occurs when
the data is over 1024 bytes. I don't know which library
is actually used. (2 database files are created with extension
'dir' and 'pag'.) However, I found the library 'libgdbm.a'
but I don't know how to force ocamlrun to link this
library instead of the default one.

My questions are:
1. How do I know which libraries are to be linked at execution
    time (by ocamlrun) ?
2. Can I specify a different library to be used, and how ?
    (possibly without recompiling the OCaml library Dbm)

Thanks for your help!

Sébastien

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

end of thread, other threads:[~2004-04-23 15:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-23 15:34 [Caml-list] Dbm: linking problem Sebastien Ferre
2004-04-23 15:32 ` Gerd Stolpmann

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