erlang-nif Questions

2

Solved

I have a nif library and every time i recompile it, I must restart the shell to reload or upgrade this library. Here is my erlang code: -module(q4). -export([init/0]). -on_load(init/0). init()...
Blackett asked 30/10, 2015 at 0:15

1

Is it possible to call Erlang functions (callback funs) from NIFs? I read the doc(http://www.erlang.org/doc/man/erl_nif.html), but didn't find how to do that.
Oogonium asked 24/12, 2015 at 2:46

1

Solved

Hi I'm trying to get the Hello World example for Erlang NIF (Native Implemented Function) shown here http://www.erlang.org/doc/man/erl_nif.html to work from Elixir on OSX 64bit. First I create the...
Odine asked 27/4, 2015 at 9:29

1

Solved

When implementing NIFs, Dialyzer gives me Function crc16/1 has no local return probably because I do exit in the .erl module (like the official docs recommend): -module(my_nifs). -export([crc...
Immolation asked 28/10, 2014 at 15:47

2

Solved

I can use nif's if I write the escript myself, however when I use rebar escriptize the nif functions cannot be found. I think it is because *.so objects are not getting packed like beam files. Here...
Lydon asked 25/3, 2013 at 14:45

1

Solved

I have a C++ code that implement a special protocol over the serial port. The code is multi-threaded and internally polls the serial port and do its own cyclic processing. I would like to call this...
Reduplication asked 25/9, 2012 at 18:51

3

Solved

I'm trying to compile the NIF Test from Erlang (http://www.erlang.org/doc/man/erl_nif.html) on Mac OS X Lion. I can't get it to compile. Am I missing a compiler flag? Here's the error I get: Compu...
Saville asked 27/11, 2011 at 19:29

1

Solved

I try to use erlang nif, I made: #include <erl_nif.h> But get error: fatal error: erl_nif.h: No such file or directory Where can i find it? I have installed erlang R14B (erts-5.8.1) O...
Crutchfield asked 20/8, 2011 at 15:8

1

Solved

I have a little problem with threads in Erlang NIFs. You can view my code here: http://pastebin.com/HMCj24Jp. The problem is that when I starting the thread it takes some arguments and starts the g...
Catharine asked 5/8, 2010 at 15:10
1

© 2022 - 2024 — McMap. All rights reserved.