este Erifang NIF - OS X Lion

Estou tentando compilar o teste NIF de Erlang http: //www.erlang.org/doc/man/erl_nif.htm) no Mac OS X Lion. Não consigo compilar. Estou faltando um sinalizador de compilador? Aqui está o erro que recebo:

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

Eu também tentei isso com-m32 mas diz que também não há arquitetura i38

Obrigado

questionAnswers(3)

yourAnswerToTheQuestion