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 LAA06880; Mon, 28 Jul 2003 11:49:21 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 LAA27587 for ; Mon, 28 Jul 2003 11:49:19 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h6S9nJT20316 for ; Mon, 28 Jul 2003 11:49:19 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19h4d4-00056e-00 for ; Mon, 28 Jul 2003 10:49:18 +0100 Date: Mon, 28 Jul 2003 10:49:18 +0100 To: caml-list@inria.fr Subject: [Caml-list] Dynlink problems Message-ID: <20030728094918.GA19609@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; dynlink:01 foo:01 dllfoo:01 -dllib:01 freshmeat:01 obstacle:01 vanier:01 ltd:98 cmo:01 ocaml:01 command:98 ocamlmklib:01 compile:02 external:03 business:96 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm building a plug-in module as a .cmo file which requires a mixed OCaml/C library which I build with ocamlmklib (ie. I have foo.cma and dllfoo.so). The plug-in module needs to get loaded using Dynlink. I can't work out how to compile the plug-in so that it references the functions in dllfoo.so. On loading, it consistently complains about: The external function `...' is not available where ... is a function defined in the foo library. I've even tried giving -dllib on the command line when compiling the .cmo file, but this makes no obvious difference. What am I doing wrong?! Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. "One serious obstacle to the adoption of good programming languages is the notion that everything has to be sacrificed for speed. In computer languages as in life, speed kills." -- Mike Vanier ------------------- 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