Slide 16
Slide 16 text
How to compile
{_result, _errcode} = System.cmd("g++",
[
"native_lib/sha3.cpp",
"native_obj/sha3_d.o",
"-fPIC",
"-shared",
"-L/home/sylph01/.asdf/installs/dmd/2.079.1/dmd2/linux/lib64",
"-I/home/sylph01/.asdf/installs/erlang/20.3.4/usr/include",
"-lphobos2",
"-pthread",
"-o", "native_obj/sha3.so"
], stderr_to_stdout: true)
(Paths can be omitted when included in env vars)