From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA16726; Fri, 10 Jan 2003 22:02:46 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA16956 for caml-list@pauillac.inria.fr; Fri, 10 Jan 2003 22:02:45 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA03380 for ; Fri, 10 Jan 2003 15:32:15 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from dsf.foxthompson.net (adsl-63-196-84-93.dsl.sndg02.pacbell.net [63.196.84.93]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h0AEWD520530 for ; Fri, 10 Jan 2003 15:32:14 +0100 (MET) Received: from localhost ([127.0.0.1] helo=lindows.com) by dsf.foxthompson.net with esmtp (Exim 3.33 #1 (Debian)) id 18X0Ci-0003EO-00; Fri, 10 Jan 2003 06:32:12 -0800 Message-ID: <3E1ED96C.8070603@lindows.com> Date: Fri, 10 Jan 2003 06:32:12 -0800 From: David Fox User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] Getting ocamlrun to load a C library Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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