Search code examples
cerlangerlang-nif

erl_nif.h not found


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)

OS Arch linux.

Thank you.


Solution

  • Compile with -I/usr/lib/erlang/erts-5.8.1/include, if that's where erl_nif.h is.