From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 9B267BC6B for ; Sat, 16 Jun 2007 00:37:41 +0200 (CEST) Received: from ipmail03.adl2.internode.on.net (ipmail03.adl2.internode.on.net [203.16.214.135]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5FMbdgh017181 for ; Sat, 16 Jun 2007 00:37:40 +0200 X-IronPort-AV: E=Sophos;i="4.16,426,1175437800"; d="scan'208";a="103627089" Received: from ppp2-129.lns1.syd7.internode.on.net (HELO [192.168.1.201]) ([59.167.2.129]) by ipmail03.adl2.internode.on.net with ESMTP; 16 Jun 2007 08:07:37 +0930 Subject: Re: [Caml-list] Dynamic linking From: skaller To: Alain Frisch Cc: caml-list@yquem.inria.fr In-Reply-To: <4672B855.7040103@inria.fr> References: <4672B855.7040103@inria.fr> Content-Type: text/plain Date: Sat, 16 Jun 2007 08:37:36 +1000 Message-Id: <1181947056.22243.102.camel@rosella.wigram> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 467314B3.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; 0200,:01 frisch:01 ocaml's:01 ocaml:01 dynlink:01 frisch:01 ocaml:01 dll-hell:01 manifests:01 dll-hell:01 versioning:01 cvs:01 sourceforge:01 wrote:01 deprecated:01 On Fri, 2007-06-15 at 18:03 +0200, Alain Frisch wrote: > Hello, > > I'm pleased to announce the existence of an experimental branch in > OCaml's CVS. Main changes: > > * Dynamic loading of OCaml code in native code programs, through > the Dynlink module. > > * Simplified dynamic linking of C code under Windows. > > > More info: http://alain.frisch.fr/natdynlink.html > > Enjoy and send some feedback! A question, probably not directed at Alain: will there be support for AMD64/64 bit Ocaml for Windows XP64/VC2005 +/- Vista? Windows ports are all 32 bit at the moment aren't they? Also a question: how does the Windows native (MSVC based) Ocaml code find C libraries? The VC2003 style DLL-hell approach is now deprecated on Windows platforms: you have to use Assemblies, that is, ship applications with manifests and related components which are installed in system caches to get around DLL-hell. The resulting system is horrible to prepare for vendors I think, I haven't figured it out, but it does support multi-version and multi-arch, and seems more sophisticated the Linux versioning technology. The bottom line, however, is you simply cannot link to a DLL by just plonking it in the PATH anymore. -- John Skaller Felix, successor to C++: http://felix.sf.net