[erlang-questions] Difference between ei.a and ei_st.a?

Björn-Egil Dahlberg wallentin.dahlberg@REDACTED
Mon Sep 3 00:42:17 CEST 2012


Hi,

ST is not thread safe. You get only libei_st.a if configure can't find a
suitable thread library.
Both are built when a thread library is found.

On a side note. Are you sure you want to use erl_interface in a NIF or a
linked-in driver?

Erl_Interface is useful when creating c-nodes and talking distribution to
erlang nodes otherwise, not so much.

I know there are examples where ei is used in linked-in drivers and I think
they are misleading.

// Björn-Egil

2012/9/2 Zabrane Mickael <zabrane3@REDACTED>

> Hi guys,
>
> $ ls -la /usr/lib/erlang/lib/erl_interface-3.7.7/lib/
> total 3352
> drwxr-xr-x  6 root  wheel     204 11 jui 17:59 .
> drwxr-xr-x  6 root  wheel     204 11 jui 17:15 ..
> -rw-r--r--  1 root  wheel  611488 11 jui 17:59 libei.a
> -rw-r--r--  1 root  wheel  599240 11 jui 17:59 libei_st.a
> -rw-r--r--  1 root  wheel  247816 11 jui 17:59 liberl_interface.a
> -rw-r--r--  1 root  wheel  247000 11 jui 17:59 liberl_interface_st.a
>
>
> Why there's 2 libei*.a?
> Which one should I link to when building my linked-in driver (or NIF)?
>
> N.B: same for Windows, there's: ei.lib and ei_md.lib (and even ei_mdd.lib)
> !!!
>
> Regards,
> Zabrane
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120903/4ba11bc1/attachment.htm>


More information about the erlang-questions mailing list