gcc -std=c99 -fPIC -shared -o complex_nif.so complex_nif.c -I /usr/local/lib/erlang/erts-8.2/include/ -flat_namespace -undefined
suppress
- Add the absolute path to the erlang
erl_nif.h
- Add
-flat_namespace -undefined suppress
on macOS
% cd ../helper
c(color).
c(debug).
% cd ../mandelbrot
c(theme).
c(ppm).
c(complex).
c(complex_nif).
c(brot).
c(mandel).
mandel:whole().