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.
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.
Compile with -I/usr/lib/erlang/erts-5.8.1/include
, if that's where erl_nif.h
is.
C_INCLUDE_PATH
, see gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html –
Cotoneaster brew info erlang
which in my case was /opt/homebrew/Cellar/erlang/26.2.5/lib/erlang/erts-14.2.5/include
. Sadly building is another matter on ARM which seems a lot harder to fix.. –
Freiburg © 2022 - 2024 — McMap. All rights reserved.
~/.bash_profile
. For my installation (made by brew) I've added:export ERLHOME=/usr/local/Cellar/erlang/17.5
andexport ERLINCL=$ERLHOME/lib/erlang/usr/include
. In this way I can just specify:-I$ERLINCL
. – Snatch