Sto provando a compilare il test NIF da Erlang (http://www.erlang.org/doc/man/erl_nif.html) su Mac OS X Lion. Non riesco a farlo compilare. Mi manca una bandiera del compilatore? Ecco l'errore che ottengo:Test NIF Erlang - OS X Lion
Computer:~ me $ gcc -fPIC -shared -o niftest.so niftest.c -I /usr/local/Cellar/erlang/R14B02/lib/erlang/usr/include/
Undefined symbols for architecture x86_64:
"_enif_make_string", referenced from:
_hello in ccXfh0oG.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Ho anche provato questo con -m32
ma dice che non c'è architettura i386 neanche.
Grazie!
Ricerca dinamica è! Grazie :) – batman
Grazie mille per questa risposta :) – ttvd