caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Martin DeMello <martindemello@gmail.com>
To: Leonardo Laguna Ruiz <modlfo@gmail.com>
Cc: OCaml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] How to build a library with c++ stubs
Date: Fri, 27 Feb 2015 14:48:15 -0800	[thread overview]
Message-ID: <CAFrFfuHo+mPAHw1kGOtj6OL8+KyGwTtGRNA_4+ima9_PM4s4fg@mail.gmail.com> (raw)
In-Reply-To: <60828FB1-F1FA-404A-AF22-B04339DA05DB@gmail.com>

Not my project, but looks interesting: https://github.com/JoeDralliam/Ocsfml

martin


On Fri, Feb 27, 2015 at 2:40 PM, Leonardo Laguna Ruiz <modlfo@gmail.com> wrote:
> Hi,
>
> I’m working on a library which wraps functions and clases written in C++. I’m trying to setup a build system based in oasis but I haven’t found any example on how to do it.
>
> So far I have been able of compiling my test programs using cmake and ocamlbuild. I use cmake to generate a static library out of my C++ file. Then I call ocamlbuild (from cmake) to generate a object file from my main file (main.native.o). Finally I link everything using cmake.
>
> I have tried to link the my test program with ocambuild by passing all the necessary flags (use stdlib=libc++ and link CoreFoundation and IOKit in OS X) but I haven’t succeeded using ocamlbuild (or oasis).
>
> Does anyone has an example on how to build a library that uses C++ code?
>
> Thanks,
>
> Leonardo
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs

  parent reply	other threads:[~2015-02-27 22:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27 22:40 Leonardo Laguna Ruiz
2015-02-27 22:45 ` Ivan Gotovchits
2015-02-27 22:48 ` Martin DeMello [this message]
2015-03-01 12:04 ` ygrek
2015-03-01 13:36   ` Peter Zotov
2015-03-03  8:43     ` Leonardo Laguna Ruiz
2015-03-01 17:31 ` Shayne Fletcher

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=CAFrFfuHo+mPAHw1kGOtj6OL8+KyGwTtGRNA_4+ima9_PM4s4fg@mail.gmail.com \
    --to=martindemello@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=modlfo@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).