[erlang-questions] compiling linked-in driver on Mac OSX

Jacob Vorreuter jacob.vorreuter@REDACTED
Sat May 29 22:21:19 CEST 2010


Good suggestion, but it didn't seem to make a difference.  I tried:

gcc -o example_drv.so example_drv.c -arch x86_64 -fPIC -bundle -flat_namespace -undefined suppress -I/usr/local/lib/erlang/erts-5.7.5/include/

same result:

Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.7.5  (abort with ^G)
1> erl_ddll:load(".", "example_drv").
{error,{open_error,-10}}
2> erl_ddll:format_error({open_error,-10}).
"dlopen(./example_drv.so, 2): no suitable image found.  Did find:\n\t./example_drv.so: mach-o, but wrong architecture"


On May 29, 2010, at 1:05 PM, Max Lapshin wrote:

> -arch x86_64 -fPIC -bundle -flat_namespace -undefined suppress



More information about the erlang-questions mailing list