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 RAA11723; Mon, 19 Aug 2002 17:58:13 +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 RAA11754 for ; Mon, 19 Aug 2002 17:58:13 +0200 (MET DST) Received: from grisu.bik-gmbh.de (grisu.bik-gmbh.de [194.233.237.82]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7JFwCT16356 for ; Mon, 19 Aug 2002 17:58:12 +0200 (MET DST) Received: from hars.de (prony.bik-gmbh.de [194.233.237.133]) by grisu.bik-gmbh.de (8.12.3/8.11.1) with ESMTP id g7JFwBAK093939 for ; Mon, 19 Aug 2002 17:58:11 +0200 (CEST) (envelope-from florian@hars.de) Message-ID: <3D61158E.70001@hars.de> Date: Mon, 19 Aug 2002 17:58:06 +0200 From: Florian Hars User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.0.0) Gecko/20020529 X-Accept-Language: de-de, en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Linking camlidl stub code References: <3D5CA644.4000801@hars.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Florian Hars wrote: > My remainig problem is how to link my programs with the generated stub > code. To answer my own questions: Don't trust OcamlMakefile (at lest not the version from march 2001) to handle all the IDL stuff. If I compile all my C stub code files (the libfoo library I want to interface to has several related, but technically independent subsets of its API which I want to put in different modules) and put them into a libfoostubs.a, I can then compile the Ocaml side of then stub code with -cclib foostubs -cclib foo -cclib camlidl into a cm(x)a, and things work. Phew.... Yours, Florian. ------------------- 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