[erlang-questions] How to load a port driver which itself uses a shared library?

Diptansu Das <>
Fri May 15 04:57:30 CEST 2015


I need to create a port driver which will need to link against some other
shared library. When I try to load the driver I get an {error, {open_error,
-10}}. I tracked this down to the call to the shared library functions. If
I comment out the calls to the shared library it loads fine. It seems the
erl_ddll loader cannot load a driver if it links to a shared library... Or
maybe there is some other way to accomplish this?
In case I cannot create a normal dynamically loaded port driver, how can I
statically link it to the erlang build?
Thanks,
D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150514/0b07cf96/attachment.html>


More information about the erlang-questions mailing list