caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Getting ocamlrun to load a C library
@ 2003-01-10 14:32 David Fox
  0 siblings, 0 replies; only message in thread
From: David Fox @ 2003-01-10 14:32 UTC (permalink / raw)
  To: caml-list

If I build the ocaml-mysql package I can compile and link programs with 
it just fine.  However, when I try to load it from a script like this:

#!/usr/bin/ocamlrun /usr/bin/ocaml
#load "ocmysql.cma"

I get

Cannot load required shared library: 
/usr/lib/ocaml/stublibs/dllocmysql.so: undefined symbol: mysql_store_result.

The symbol mysql_store_result is in /usr/lib/libmysqlclient.so.10.0.0, 
which is available when you link with ocmysql.cma because of the -cclib 
-lmysqlclient flags, but I don't know how to make it available in a 
script.  Is it possible?  What am I missing?
-------------------
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] only message in thread

only message in thread, other threads:[~2003-01-10 21:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-10 14:32 [Caml-list] Getting ocamlrun to load a C library David Fox

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