From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr 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 3A7C67F890 for ; Tue, 25 Mar 2014 22:19:48 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of yallop@gmail.com) identity=pra; client-ip=74.125.82.174; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yallop@gmail.com"; x-sender="yallop@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of yallop@gmail.com designates 74.125.82.174 as permitted sender) identity=mailfrom; client-ip=74.125.82.174; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yallop@gmail.com"; x-sender="yallop@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-we0-f174.google.com) identity=helo; client-ip=74.125.82.174; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yallop@gmail.com"; x-sender="postmaster@mail-we0-f174.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsQBAJHyMVNKfVKulGdsb2JhbABZg0FXgwe/ZYEVCBYOAQEBAQcLCwkSKoIlAQEBBCMdARsdAQMMBgULAwoCAiYCAiIBEQEFARwGE4dkAQMRDaEyjA5Rgw6WWAoZJw1khjcRAQEEDIEdjUUHgm+BSQSYTZBDGCmEXD0 X-IPAS-Result: AsQBAJHyMVNKfVKulGdsb2JhbABZg0FXgwe/ZYEVCBYOAQEBAQcLCwkSKoIlAQEBBCMdARsdAQMMBgULAwoCAiYCAiIBEQEFARwGE4dkAQMRDaEyjA5Rgw6WWAoZJw1khjcRAQEEDIEdjUUHgm+BSQSYTZBDGCmEXD0 X-IronPort-AV: E=Sophos;i="4.97,730,1389740400"; d="scan'208";a="64725474" Received: from mail-we0-f174.google.com ([74.125.82.174]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 25 Mar 2014 22:19:47 +0100 Received: by mail-we0-f174.google.com with SMTP id t60so743874wes.19 for ; Tue, 25 Mar 2014 14:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ncBNzpMrp7M+e/sMVR/IjDAxWTMzZH+lGaHpRIrvMbI=; b=g1g6Xe42o1l1VdBoWk1ig0jJjcoOxDoHGM1QhGAq3fCVwhFItzsfNLFjCbs7T4JLzu vjG0SSr8lmIBeYajvVL4KGlQjujH3BA7e0Q9nhh1O7ZYPThuhGadVOC4KzjfghAzP6cY WK/5dlalh8XgiHDGaU7VSqwnCsxqjxe8bUI4C+5affIHsSM4/6HqGwfTDIYczIDCMXQp IyVcHqJ2rALTvcN/1MOEU8YryO/tsfYc0DYjwQxWROjgOtN5b8oecH3P3Ggrvs9B/brl YCetneFi87aFXuEm16E0RmJoQLRiuNOwgioDsjxw4okZt9Qsdkln96Y8scBEdFAmQp8k RPEg== MIME-Version: 1.0 X-Received: by 10.180.9.42 with SMTP id w10mr24968739wia.20.1395782387633; Tue, 25 Mar 2014 14:19:47 -0700 (PDT) Received: by 10.217.5.65 with HTTP; Tue, 25 Mar 2014 14:19:47 -0700 (PDT) In-Reply-To: References: Date: Tue, 25 Mar 2014 21:19:47 +0000 Message-ID: From: Jeremy Yallop To: Dan Benjamin Cc: David Sheets , Bruno Deferrari , O Caml Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] Static linking via Ctypes? David Sheets wrote: > I did > > > > and > > > > to require a static link without stub generation in addition to > ocamlmklib on the .ml and .o files. > > Unfortunately, this is not very portable (or sane). On 25/03/2014, Dan Benjamin wrote: > That does work, thanks very much. Are there plans to add anything > similar to Ctypes? Not exactly, since the stub generation support in the next ctypes release resolves these issues in a different way. In the current release (0.2.3) setting up foreign calls and linking are both entirely dynamic. Stub generation will make it possible to link statically as well.