erl_interface compilation problem
Jani Hakala
jahakala@REDACTED
Mon Jan 17 00:32:54 CET 2005
blaguehubert <blaguehubert@REDACTED> writes:
> I try to write a little C program using erl_interface and I've some
> compilation problems:
>
> gcc -I/usr/lib/erlang/lib/erl_interface-3.5/include/
> -L/usr/lib/erlang/lib/erl_interface-3.5/lib/ -lerl_interface -lei
> wait_search_engine.c -o wait_search_engine > out.log
>
Try putting '-lerl_interface -lei' after the other arguments:
gcc -I/usr/lib/erlang/lib/erl_interface-3.5/include/
-L/usr/lib/erlang/lib/erl_interface-3.5/lib/
wait_search_engine.c -o wait_search_engine -lerl_interface -lei > out.log
I needed -lpthread also...
Jani Hakala
More information about the erlang-questions
mailing list