From: Basile STARYNKEVITCH <basile@starynkevitch.net>
To: kybic@fel.cvut.cz
Cc: Aaron Bohannon <bohannon@cis.upenn.edu>,
OCaml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] linking errors involving cpp files
Date: Tue, 15 Dec 2009 16:04:44 +0100 [thread overview]
Message-ID: <4B27A58C.5020003@starynkevitch.net> (raw)
In-Reply-To: <7a9cb3950912150650k5ef8d6a6uf125d035876cdc8d@mail.gmail.com>
Jan Kybic wrote:
> On Tue, Dec 15, 2009 at 2:50 PM, Aaron Bohannon <bohannon@cis.upenn.edu> wrote:
>> Thanks for the tip. This does resolve the missing caml symbols (even
>> when naming the file with a cpp extension). However, my real program
>> actually uses some C++ features. I think I could convert it to a real
>> C program, but I assumed there would be some other way.
>>
>
> What you can do is to create a thin C layer between your Ocaml and C++ code.
> I am including a very simple code - an interface to the Cubpack
> library in Ocaml.
>
In addition of all the other good answers, you could look at how some existing C++ open-source libraries interface to Ocaml.
Both the Parma Polyhedra Library (PPL, under GPLv3 licence), at http://www.cs.unipr.it/ppl/ and the Low Level Virtual
Machine library (LLVM, under a BSD-like licence) at http://llvm.org/ are free libraries, coded in C++, interfaced to Ocaml.
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***
prev parent reply other threads:[~2009-12-15 15:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-15 5:09 Aaron Bohannon
2009-12-15 6:59 ` [Caml-list] " Robert Roessler
2009-12-15 13:50 ` Aaron Bohannon
2009-12-15 13:59 ` Mark Shinwell
2009-12-15 20:47 ` Aaron Bohannon
2009-12-15 14:50 ` Jan Kybic
2009-12-15 15:04 ` Basile STARYNKEVITCH [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=4B27A58C.5020003@starynkevitch.net \
--to=basile@starynkevitch.net \
--cc=bohannon@cis.upenn.edu \
--cc=caml-list@yquem.inria.fr \
--cc=kybic@fel.cvut.cz \
/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