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 6ADEF7EE48 for ; Tue, 3 Mar 2015 09:43:44 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of modlfo@gmail.com) identity=pra; client-ip=209.85.213.172; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="modlfo@gmail.com"; x-sender="modlfo@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of modlfo@gmail.com designates 209.85.213.172 as permitted sender) identity=mailfrom; client-ip=209.85.213.172; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="modlfo@gmail.com"; x-sender="modlfo@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-ig0-f172.google.com) identity=helo; client-ip=209.85.213.172; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="modlfo@gmail.com"; x-sender="postmaster@mail-ig0-f172.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BBAgBKc/VUlKzVVdFAGoNUWq5TAQaSXoUlSQKBIU0BAQEBAQEQAQEBAQcLCwkSMIQQAQEEEiYIARscAgMMBgULDQkWDwkDAgECAQ8CEQEFARwTBgIBAR6HeAEDEQQBCDevMT4xjRmCd5AIChknDVSESgEBAQEGAQEBARgBBQ6FeIUMgkSCMRaEFQWTWYQhgUiBGjmFG4Zlgk6BdDWBFYQSbgGCQgEBAQ X-IPAS-Result: A0BBAgBKc/VUlKzVVdFAGoNUWq5TAQaSXoUlSQKBIU0BAQEBAQEQAQEBAQcLCwkSMIQQAQEEEiYIARscAgMMBgULDQkWDwkDAgECAQ8CEQEFARwTBgIBAR6HeAEDEQQBCDevMT4xjRmCd5AIChknDVSESgEBAQEGAQEBARgBBQ6FeIUMgkSCMRaEFQWTWYQhgUiBGjmFG4Zlgk6BdDWBFYQSbgGCQgEBAQ X-IronPort-AV: E=Sophos;i="5.09,680,1418079600"; d="scan'208";a="124109707" Received: from mail-ig0-f172.google.com ([209.85.213.172]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 03 Mar 2015 09:43:43 +0100 Received: by igkb16 with SMTP id b16so24680997igk.1 for ; Tue, 03 Mar 2015 00:43:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=xLUmC4eWsUlFSlHLc2fFgqZKf545hikO4dhD7kN4ibY=; b=uTAk6apICiiOrJN1FLSvR644Q5LEKoEtP+rlsXAeu2NsfVAOhKIWLni/TjYZF+hMp6 8G/iSIiBKlDrjXMLTa1Eqkkm33WjlzcMZA5LW5k+krVXggqYw/vQRhmD0PbeZux3U7uo ng6L3/PSyTs90IoXNMbCZ/T9+N8/D2HnW9WzdXEzq9fkHptvj6sSuWIryzdp3OcnFSSe ZSgNIMCgpDaqPQ7iUu3kpQlWyijS7TFs95R31oMzvInroNXz4kb+jHlOu1BzYzr7bebz OjG9gzUMs8s3eLrUWh+SiyQomIeJce+iemTBystWY0ctjYuvSZsCdR/6lmm2zDJUJgyN 4nWw== X-Received: by 10.50.107.7 with SMTP id gy7mr286675igb.49.1425372222800; Tue, 03 Mar 2015 00:43:42 -0800 (PST) Received: from [10.10.156.106] ([94.136.92.233]) by mx.google.com with ESMTPSA id d1sm8456999igl.9.2015.03.03.00.43.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 00:43:41 -0800 (PST) Message-ID: <54F5743C.4020301@gmail.com> Date: Tue, 03 Mar 2015 09:43:40 +0100 From: Leonardo Laguna Ruiz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: caml-list@inria.fr References: <60828FB1-F1FA-404A-AF22-B04339DA05DB@gmail.com> <20150301200429.7d2c5e2b@kiwi.local.tld> <5ced2e657dadae093eb818ab6d9b0d93@whitequark.org> In-Reply-To: <5ced2e657dadae093eb818ab6d9b0d93@whitequark.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] How to build a library with c++ stubs Thank you everyone for your answers. I was checking the examples that Ivan G. and Martin D. sent. But it took me some time to find out how everything worked, specially because I haven't made any ocambuild plugin and is my first time using oasis. I ended up using the renaming of files as Ygrek suggested in the link. If the issue that Peter Z. is fixed I guess that I just need to rename the files back and remove the flags. @Shane F. I used the method you describe in the blog post when I had my cmake based build system. Soon I'll be releasing my library once I test that works correctly in all the platform I want to support. Leonardo On 2015-03-01 14:36, Peter Zotov wrote: > On 2015-03-01 15:04, ygrek wrote: >> On Fri, 27 Feb 2015 23:40:04 +0100 >> Leonardo Laguna Ruiz wrote: >> >>> Does anyone has an example on how to build a library that uses C++ >>> code? >> >> Here is one - >> http://stackoverflow.com/questions/21728826/building-c-code-with-ocamlbuild >> > > I submitted an issue to make it better: > http://caml.inria.fr/mantis/view.php?id=6798 >