Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: interface to C++
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefan Monnier <stefan.monnier@e...>
Subject: Re: interface to C++
Xavier Leroy <Xavier.Leroy@inria.fr> wrote:
> by adding type information or whatever to the function name.) Then,
> just put the mangled names in the Caml "value" declarations, and
> everything should work fine. To get your C++ compiler to be called

Rather than mess around with the mangled names, you might be better off trying
to compile caml-light with your C++ compiler so that the name (de)mangling
is all done by your compiler. Since C++ is an approximate superset of ANSI C,
it might work.
(but don't ask me how to interface caml-light with C++ objects and methods.
I have no idea how easy it can be to add custom-made types)


	Stefan