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=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 67BD8BC69 for ; Wed, 21 Nov 2007 13:05:42 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAPatQ0dQDPIalmdsb2JhbACPNQEBAQEHAggREQc X-IronPort-AV: E=Sophos;i="4.21,446,1188770400"; d="scan'208";a="19531731" Received: from smtp20.orange.fr ([80.12.242.26]) by mail4-smtp-sop.national.inria.fr with ESMTP; 21 Nov 2007 13:05:42 +0100 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2026.orange.fr (SMTP Server) with ESMTP id BCC131C00096 for ; Wed, 21 Nov 2007 13:05:41 +0100 (CET) Received: from [192.168.1.59] (APuteaux-154-1-25-148.w83-199.abo.wanadoo.fr [83.199.80.148]) by mwinf2026.orange.fr (SMTP Server) with ESMTP id 8452B1C0008E; Wed, 21 Nov 2007 13:05:41 +0100 (CET) X-ME-UUID: 20071121120541542.8452B1C0008E@mwinf2026.orange.fr Message-ID: <47441F08.50901@frisch.fr> Date: Wed, 21 Nov 2007 13:05:28 +0100 From: Alain Frisch User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Matthieu Dubuget Cc: viktor tron , Caml Mailing List Subject: Re: [Caml-list] C libs from Ocaml libs References: <8cc3d8520711202343q2951aee2lca188a185b84b511@mail.gmail.com> <4743FE39.9000208@frisch.fr> <9f09a07a0711210321qdef912cn8177366e0d4b7af4@mail.gmail.com> In-Reply-To: <9f09a07a0711210321qdef912cn8177366e0d4b7af4@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; frisch:01 frisch:01 libs:01 ocaml:01 libs:01 matthieu:01 dubuget:01 ocaml:01 runtime:01 -output-obj:01 dynlink:01 unification:01 makefiles:01 ocaml's:01 cvs:01 Matthieu Dubuget wrote: > 2007/11/21, Alain Frisch : >>> * how do I create dynamic libs, dlls for windows? >> What do you want to put in your dynamic libs? If you want to create a >> "stand-alone" dll with the OCaml runtime + arbitrary OCaml and C code, >> the new behavior of "-output-obj -o XXX.{so,dll}" is/will be what you want. >> > > Waou! I did not noticed this! > Thanks for this information Alain. > Since when is it possible? This is part of the set of changes that will come with the features previously found on the natdynlink branch (Dynlink in native code, simplified treatment of DLLs under Windows, unification of Makefiles between Unix and Windows,...). I guess this will be available in OCaml 3.11 (to be expected not too soon); currently, you can find it on the main branch of OCaml's CVS. -- Alain