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 MAA06511; Mon, 28 Jul 2003 12:22:20 +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 MAA16148 for ; Mon, 28 Jul 2003 12:22:18 +0200 (MET DST) Received: from mwinf0602.wanadoo.fr (smtp3.wanadoo.fr [193.252.22.25]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h6SAMIT21294 for ; Mon, 28 Jul 2003 12:22:18 +0200 (MET DST) Received: from warp (ABordeaux-103-1-11-130.w80-13.abo.wanadoo.fr [80.13.176.130]) by mwinf0602.wanadoo.fr (SMTP Server) with SMTP id 56C8B5400260; Mon, 28 Jul 2003 12:22:17 +0200 (CEST) Message-ID: <005201c354f2$1f2df430$ca00a8c0@warp> From: "Nicolas Cannasse" To: , "Richard Jones" References: <20030728094918.GA19609@redhat.com> Subject: Re: [Caml-list] Dynlink problems Date: Mon, 28 Jul 2003 12:22:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; cannasse:01 warplayer:01 caml-list:01 dynlink:01 foo:01 dllfoo:01 -dllib:01 cmo:01 ocaml:01 nicolas:01 command:98 ocamlmklib:01 compile:02 external:03 module:03 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?! This should work : You need to create a CMA with -dllib containing only the CMO you want to Dynlink. Nicolas Cannasse ------------------- 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