Erl_nif.h not found

I am trying to use erlang nif,

I did:

#include <erl_nif.h> 

But the error will turn out:

Fatal error: erl_nif.h: No such file or directory

Where can I find him? I installed erlang R14B (erts-5.8.1)

OS Arch linux.

Thanks.

+4
source share
1 answer

Compile with -I/usr/lib/erlang/erts-5.8.1/include if this is where erl_nif.h .

+9
source

All Articles