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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 58CD67EE4B for ; Sun, 6 Oct 2013 05:19:55 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of ygrek@autistici.org) identity=pra; client-ip=82.94.249.234; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="ygrek@autistici.org"; x-sender="ygrek@autistici.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of ygrek@autistici.org designates 82.94.249.234 as permitted sender) identity=mailfrom; client-ip=82.94.249.234; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="ygrek@autistici.org"; x-sender="ygrek@autistici.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of postmaster@latitanza.investici.org designates 82.94.249.234 as permitted sender) identity=helo; client-ip=82.94.249.234; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="ygrek@autistici.org"; x-sender="postmaster@latitanza.investici.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoIBAHLWUFJSXvnqnGdsb2JhbABZhzm9cIEVFg4BAQEBAQgUCTyCJQEBBAEjHQEBOAQLCwkRAgUhAgIPEjYZh3QDCQqpC3WDWwEFhB8NiWUGgSmLPYI4OhaCVIE5iTqFeYZogWgBhjaGFIhn X-IPAS-Result: AoIBAHLWUFJSXvnqnGdsb2JhbABZhzm9cIEVFg4BAQEBAQgUCTyCJQEBBAEjHQEBOAQLCwkRAgUhAgIPEjYZh3QDCQqpC3WDWwEFhB8NiWUGgSmLPYI4OhaCVIE5iTqFeYZogWgBhjaGFIhn X-IronPort-AV: E=Sophos;i="4.90,1041,1371074400"; d="scan'208";a="29245679" Received: from latitanza.investici.org ([82.94.249.234]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 06 Oct 2013 05:19:54 +0200 Received: from [82.94.249.234] (latitanza [82.94.249.234]) (Authenticated sender: ygrek@autistici.org) by localhost (Postfix) with ESMTPSA id 7161C9806B for ; Sun, 6 Oct 2013 03:19:52 +0000 (UTC) X-DKIM: OpenDKIM Filter v2.6.8 latitanza.investici.org 7161C9806B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1381029593; bh=cHfzKrOMkZooFi+YXL8dpez8TRn+XiwOa3dYj6wY59A=; h=Date:From:To:Subject:In-Reply-To:References; b=kuojPdWIdLsT2bDyLAPpv4EG9WThGOJtwCJ2vp/sgFrsDTTW4Z8BReGpd3QTnCWZc CBtiTCi51hN9AY8aXawaOsWp3REHIQSZ/1SR3FHoqHfYZJcKy5QkgeBw+YAMu+C366 xZ11ghoIxa7HO0VDNOVMVuk4GXsP2L2L32I43whI= Date: Sun, 6 Oct 2013 11:19:46 +0800 From: ygrek To: caml-list@inria.fr Message-ID: <20131006111946.4c63d7b5@kiwi.local.tld> In-Reply-To: References: X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] OASIS help - libraries with mixed C/C++ part On Sat, 5 Oct 2013 12:13:28 +0200 Micha=C5=82 Kurcewicz wrote: > Hello, >=20 > I am migrating some old code from OCamlMakefile to a oasis/ocamlbuild bas= ed > build process. While the migration is generally straightforward, I have > encountered some problems with a library where the C part includes mixed > C/C++ code. Putting the C++ files into CSources: in _oasis does not seem = to > work, the files are not even copied over to the _build directory, changing > the file extensions and adding some options (-x c++) also does not solve > the problem. What is recommended way to build libraries that include a > mixed C/C++ part using OASIS/ocamlbuild? One also needs to link with stdc++ The following should work CCopt: -g -x c++ -O2 -Wextra -Wstrict-overflow=3D5 -fno-strict-aliasing -= Wfatal-errors CClib: -lstdc++ --=20