From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id A0DA8BB81 for ; Tue, 9 Nov 2004 22:38:13 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iA9LcDXL010101 for ; Tue, 9 Nov 2004 22:38:13 +0100 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 WAA30107 for ; Tue, 9 Nov 2004 22:38:12 +0100 (MET) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA9LcAeq013605 for ; Tue, 9 Nov 2004 22:38:11 +0100 Received: from [192.168.1.200] (ppp217-99.lns1.syd3.internode.on.net [203.122.217.99]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id iA9Lbu4Y086480; Wed, 10 Nov 2004 08:07:57 +1030 (CST) Subject: Re: [Caml-list] Native Module Linking From: skaller Reply-To: skaller@users.sourceforge.net To: Nicolas Cannasse Cc: caml-list In-Reply-To: <00bc01c4c68b$4f1f6d70$19b0e152@warp> References: <00bc01c4c68b$4f1f6d70$19b0e152@warp> Content-Type: text/plain Message-Id: <1100036274.6138.10.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 10 Nov 2004 08:37:56 +1100 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 419138C5.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 419138C2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 sourceforge:01 cannasse:01 wrote:01 cmx:01 glebe:01 ....:98 activating:98 061:98 nsw:01 native:02 nicolas:02 snail:02 2037:02 linking:03 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: On Wed, 2004-11-10 at 05:38, Nicolas Cannasse wrote: > Hi, > > I have a project that is structured like this : > - a library with one Entry module and several Plugins > - an application using the library. > > In the application I'm doing the following : > > open Entry; > open Plugin1; > open Plugin2; > .... > (* use "Entry" *) > > Plugins are using Entry, and application is only activating plugins with > "open" (in order to ensure they're linked). open has no effect on linking, all it does is allow you to use unqualified names. > On windows everything works well but looks like on Linux some configurations > are not linking the plugins If you are not using code in a plugin, it won't be linked from a library .. and it also won't be a problem, because you're not using it .. that's the point of a library after all. Just place the cmx in the link command line to forcibly link it, to see the side effects of initialisation. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net