From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id EFF6D7EEB9 for ; Mon, 26 Oct 2015 10:28:02 +0100 (CET) IronPort-PHdr: 9a23:QHeJfhQpLcdjQUaYLvCU7ySovNpsv+yvbD5Q0YIujvd0So/mwa65Zh2N2/xhgRfzUJnB7Loc0qyN4/2mADRLuM3Y+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8CVOl0D3WHkKZpJbzyI7izp/vEMhoVjLqtjgjDomVBvP9ps+GVzOFiIlAz97MrjtLRq8iBXpu5zv5UYCfayV+0CQLdZFDUrNXwurI2u7EGbDFjH2nxJGF4RnxVUGQ/dqFnfX5zxuyb+/KIp3SiRPcT7SfYvXjmt871sUDfpjjsKM3gy92SBzoQ6h6tepFelpgdj64/SeoCccvRkNOuJdtofQS9FX91Nfy1HGIK1KYUVWbkvJ+Fd+qD5rloI5TWkBBKnBKu7wztBh3ne07c7yO8hVw/cil9zV+kSuWjZ+Y2mfJwZVvq4meyRlW3O Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=alain@frisch.fr; spf=None smtp.mailfrom=alain@frisch.fr; spf=None smtp.helo=postmaster@mx30.yaziba.net Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of alain@frisch.fr) identity=pra; client-ip=82.138.71.21; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alain@frisch.fr"; x-sender="alain@frisch.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of alain@frisch.fr) identity=mailfrom; client-ip=82.138.71.21; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alain@frisch.fr"; x-sender="alain@frisch.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mx30.yaziba.net) identity=helo; client-ip=82.138.71.21; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alain@frisch.fr"; x-sender="postmaster@mx30.yaziba.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CmAACx8S1WnBVHilJdhApvwCYhhXwCgSY7EQEBAQEBAQEBEAEBAQEBCAsJCSEugiuCCAEBBDhAEQsYCRYECwkDAgECAUUGAQwIAQGIMAnEGQEBCAIBIIt1hRSELgWWNoUciAZbgUaGeJMUAjeCUx2BQHEBhxcBAQE X-IPAS-Result: A0CmAACx8S1WnBVHilJdhApvwCYhhXwCgSY7EQEBAQEBAQEBEAEBAQEBCAsJCSEugiuCCAEBBDhAEQsYCRYECwkDAgECAUUGAQwIAQGIMAnEGQEBCAIBIIt1hRSELgWWNoUciAZbgUaGeJMUAjeCUx2BQHEBhxcBAQE X-IronPort-AV: E=Sophos;i="5.20,200,1444687200"; d="scan'208";a="184439881" Received: from mx30.yaziba.net ([82.138.71.21]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 26 Oct 2015 10:28:02 +0100 Received: from mta10.int.yaziba.net (unknown [217.117.151.14]) by mx30.yaziba.net (mx10.yaziba.net) with ESMTP id 38C341A75A8; Mon, 26 Oct 2015 10:28:02 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mta10.int.yaziba.net (Postfix) with ESMTP id 587D0CA65C; Mon, 26 Oct 2015 10:28:02 +0100 (CET) X-Virus-Scanned: amavisd-new at mta10.int.yaziba.net Received: from mta10.int.yaziba.net ([127.0.0.1]) by localhost (mta10.int.yaziba.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3aXlFCwu19z8; Mon, 26 Oct 2015 10:28:02 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mta10.int.yaziba.net (Postfix) with ESMTP id 19115CA683; Mon, 26 Oct 2015 10:28:02 +0100 (CET) X-Virus-Scanned: amavisd-new at mta10.int.yaziba.net Received: from mta10.int.yaziba.net ([127.0.0.1]) by localhost (mta10.int.yaziba.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Bu_xjOgWzISc; Mon, 26 Oct 2015 10:28:01 +0100 (CET) Received: from [10.0.210.125] (unknown [185.23.92.144]) by mta10.int.yaziba.net (Postfix) with ESMTPSA id 9D916CA65C; Mon, 26 Oct 2015 10:28:01 +0100 (CET) To: "Soegtrop, Michael" , "caml-list@inria.fr" References: <0F7D3B1B3C4B894D824F5B822E3E5A172CE331EE@IRSMSX102.ger.corp.intel.com> <562B75D7.1000900@frisch.fr> <0F7D3B1B3C4B894D824F5B822E3E5A172CE33610@IRSMSX102.ger.corp.intel.com> From: Alain Frisch Message-ID: <562DF227.3060007@frisch.fr> Date: Mon, 26 Oct 2015 10:28:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CE33610@IRSMSX102.ger.corp.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-DRWEB-SCAN: ok X-VRSPAM-SCORE: -100 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrfeekhedruddugddthecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpjgetkgfkueetnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtjegrtddtfeehnecuhfhrohhmpeetlhgrihhnucfhrhhishgthhcuoegrlhgrihhnsehfrhhishgthhdrfhhrqeenucffohhmrghinhepihhnrhhirgdrfhhrnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht X-Validation-by: alain.frisch@lexifi.com Subject: Re: [Caml-list] flexdll circular dependency on ocamlc: Impossible to built ocaml for mingw without using some prebuilt binaries? On 26/10/2015 10:13, Soegtrop, Michael wrote: > Dear Alain, > >> Dynlink follows a different model: dynlinked units are not tied to a specific >> main executable. A myplugin.cmxs can be dynamically linked by any >> application that provides the required interfaces. > > Can you explain what you mean by Dynlink (or point me to some documents)? I though we are talking about loading DLLs with LoadLibrary programmatically (rather than by the image loader). I am quite sure calling main executable functions from a DLL loaded this way does work. But I am not sure we are talking about this mechanism or something else. I'm talking about the Dynlink library which allows OCaml code to dynamically load plugins (made of OCaml + perhaps native code). The loaded code is compiled in the same way as if it were to be linked in the main program, but then it is linked into a .cmxs file (which is really a dll). http://caml.inria.fr/pub/docs/manual-ocaml/libref/Dynlink.html Alain