Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: ygrek <ygrek@autistici.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] OASIS help - libraries with mixed C/C++ part
Date: Sun, 6 Oct 2013 11:19:46 +0800	[thread overview]
Message-ID: <20131006111946.4c63d7b5@kiwi.local.tld> (raw)
In-Reply-To: <CAM3BXOwZyu7GEL-fL-+LYhup6YG4P544L-rzt6BV+EPsV5uY8A@mail.gmail.com>

On Sat, 5 Oct 2013 12:13:28 +0200
Michał Kurcewicz <michal.kurcewicz@gmail.com> wrote:

> Hello,
> 
> I am migrating some old code from OCamlMakefile to a oasis/ocamlbuild based
> 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=5 -fno-strict-aliasing -Wfatal-errors
  CClib: -lstdc++

-- 

      parent reply	other threads:[~2013-10-06  3:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-05 10:13 Michał Kurcewicz
2013-10-05 13:58 ` Philippe Veber
2013-10-06  3:19 ` ygrek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131006111946.4c63d7b5@kiwi.local.tld \
    --to=ygrek@autistici.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox