[erlang-questions] Driver to a C++ lib

Valentin Micic valentin@REDACTED
Sun Oct 22 23:06:22 CEST 2006


I've been using C++ with Erlang libraries without any problems.
All you have to do is to declare all driver's callback functions within 
extern "C" block. The same is true for all the ei.lib functions -- simply 
include all relevant header files within extern "C" block.

Hope this helps.

V.
----- Original Message ----- 
From: "netboz" <yan.guiborat@REDACTED>
To: <erlang-questions@REDACTED>
Sent: Sunday, October 22, 2006 10:36 PM
Subject: [erlang-questions] Driver to a C++ lib


>
> Hi,
>
>
> I preparing myself to build a driver to communicate with a C++ library.
> I have been hanging around into the documentation I could find, and I 
> would
> like your
> advices about this.
>
> Is EDTK able to communicate with C++ ? May be I should demangle the method
> call ?
> Is Dryverl able to do this with a lttle less work ?
>
> what's about SWIG ? Is it the only solution (I would prefer to avoid it).
>
> Thanks to everybody,
>
> netboz
> -- 
> View this message in context: 
> http://www.nabble.com/Driver-to-a-C%2B%2B-lib-tf2491216.html#a6945352
> Sent from the Erlang Questions mailing list archive at Nabble.com.
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions 




More information about the erlang-questions mailing list