<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 31, 2014 at 4:35 PM, kraythe . <span dir="ltr"><<a href="mailto:kraythe@gmail.com" target="_blank">kraythe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Greetings, I am a newbie to erlang. I am interested in binding a c library that I have as source (that I have written) to Erlang. In Java I would use JNI. In Erlang I don't know. Can anyone point me at where the docs are for this? Especially a tutorial. Google has been unrevealing and i have been through hundreds of dead ends. </div>
</div></blockquote><div><br></div><div>If you really want the C library running together with the Erlang VM, you'll write either a set of native implemented functions (NIFs) or a linked-in driver. See the links below.</div>
<div><br></div><div><a href="http://www.erlang.org/doc/tutorial/nif.html">http://www.erlang.org/doc/tutorial/nif.html</a><br></div><div><a href="http://www.erlang.org/doc/man/erl_nif.html">http://www.erlang.org/doc/man/erl_nif.html</a></div>
<div><a href="http://www.erlang.org/doc/apps/erts/driver.html">http://www.erlang.org/doc/apps/erts/driver.html</a></div><div><a href="http://www.erlang.org/doc/man/erl_driver.html">http://www.erlang.org/doc/man/erl_driver.html</a></div>
<div><br></div><div>--steve</div></div></div></div>