Hi,<br><br>I'm trying to link erl_interface code with non-threaded libs and get the following:<br><br>poliver@altais:~/foo$ make<br>gcc -fPIC -O2 -fomit-frame-pointer -Wall -g -Wno-pointer-sign -I. -I/opt/informix/incl/esql -I/tmp/appserv/incl -c
arse.c -o ix86/arse.o<br>arse.c: In function 'main':<br>arse.c:33: warning: 'e' is used uninitialized in this function<br>gcc -L/opt/informix/lib -L/opt/informix/lib/esql -L/usr/lib/erlang/lib/erl_interface-<a href="http://3.5.5.3/lib">
3.5.5.3/lib</a> -L/tmp/appserv/lib/ix86 ix86/arse.o -lerl_interface_st -lei_st -lOT_InfTcl -lc -o arse<br>/usr/lib/erlang/lib/erl_interface-<a href="http://3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)">3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)
</a>: In function `erl_copy_term':<br>(.text+0xfba): undefined reference to `__erl_errno'<br>/usr/lib/erlang/lib/erl_interface-<a href="http://3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)">3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)
</a>: In function `erl_mk_var':<br>(.text+0x12b8): undefined reference to `__erl_errno'<br>/usr/lib/erlang/lib/erl_interface-<a href="http://3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)">3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)
</a>: In function `__erl_mk_reference':<br>(.text+0x1362): undefined reference to `__erl_errno'<br>/usr/lib/erlang/lib/erl_interface-<a href="http://3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)">3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)
</a>: In function `erl_mk_atom':<br>(.text+0x1481): undefined reference to `__erl_errno'<br>/usr/lib/erlang/lib/erl_interface-<a href="http://3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)">3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)
</a>: In function `erl_mk_port':<br>(.text+0x1699): undefined reference to `__erl_errno'<br>/usr/lib/erlang/lib/erl_interface-<a href="http://3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o):(.text+0x175b)">3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o):(.text+0x175b)
</a>: more undefined references to `__erl_errno' follow<br>collect2: ld returned 1 exit status<br>make: *** [arse] Error 1<br><br>I've seen <a href="http://erlang.org/pipermail/erlang-questions/2003-August/009688.html">
this</a> post. Can anyone tell me what I'm doing wrong?<br><br>Thanks in advance,<br>Paul.<br><br>