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 MAA18524; Mon, 28 Jul 2003 12:07:36 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA13743 for ; Mon, 28 Jul 2003 12:07:34 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h6SA7Wf09150 for ; Mon, 28 Jul 2003 12:07:33 +0200 (MET DST) Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3p2/3.7W) with ESMTP id TAA08904; Mon, 28 Jul 2003 19:07:27 +0900 (JST) To: rich@annexia.org Cc: caml-list@inria.fr Subject: Re: [Caml-list] Dynlink problems In-Reply-To: <20030728094918.GA19609@redhat.com> References: <20030728094918.GA19609@redhat.com> X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20030728190727A.garrigue@kurims.kyoto-u.ac.jp> Date: Mon, 28 Jul 2003 19:07:27 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; jacques:01 caml-list:01 dynlink:01 dllfoo:01 foo:01 -dllib:01 cmo:01 command:98 garrigue:01 compile:02 external:03 executable:03 compiling:03 library:03 loading:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Richard Jones > 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?! "-dllib dllfoo.so" must be used at link time, either for an executable or a library. It is ignored when compiling a .cmo. Jacques Garrigue ------------------- 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