Can't compile erlang NIF library on macos ?

I try to write and test an erlang-NIF library , all things going to be ok on linux, but when I try this on my MBP, I got an error below :

gcc *.c -fPIC -dynamiclib -o mynif.so
Undefined symbols:
  "_enif_is_atom", referenced from:
      _mynif_func in ccSWWIIQ.o



I can't resolve it, who can make it ?

你可能感兴趣的:(java,c,linux,erlang,gcc)