« Return to Thread: C++ objects to OCaml objects.

Re: C++ objects to OCaml objects.

by Guillaume Yziquel-4 :: Rate this Message:

Reply to Author | View in Thread

Miklos Vajna a écrit :
> On Sun, Jun 21, 2009 at 03:03:20PM +0200, Guillaume Yziquel <guillaume.yziquel@...> wrote:
>> What's the best way to do it? Any code samples around?
>
> I would start with the examples:
>
> http://swig.svn.sourceforge.net/viewvc/swig/trunk/Examples/ocaml/

Thanks for the link. I already noticed that.

I managed to link a few pieces of C++ and OCaml. Not yet very
satisfying, but a good start.

However, I see a major shortcoming of Swig when it comes to OCaml:

I cannot find a "real" binding of C++ code with OCaml. I mean by that in
Objective Caml, there are .cmo bytecode object files, .cma bytecode
library files, .cmx native object files, .cmxa native library files, and
.cmxs native shared library files. I do not yet see a way to get to this
result when looking at the examples. I do not believe to be alone in
this situation since there has been a post on the OCaml mailing list of
someone managing to get a bytecode binding going, but not the native
binding...

So, has anyone used Swig to make an OCaml .cm[x]a library?

All the best,

Guillaume Yziquel.

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

 « Return to Thread: C++ objects to OCaml objects.