<br><font size=2 face="sans-serif">Hi, </font>
<br>
<br><font size=2 face="sans-serif">I created a C file test.c</font>
<br>
<br><font size=2 face="sans-serif">{code}</font>
<br>
<br><font size=2 face="sans-serif">#include "erl_interface.h"</font>
<br><font size=2 face="sans-serif">#include "ei.h"</font>
<br><font size=2 face="sans-serif">#include <stdio.h></font>
<br>
<br><font size=2 face="sans-serif">main()</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif">int i=2;</font>
<br><font size=2 face="sans-serif">erl_init(NULL,0);</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">{/code}</font>
<br>
<br>
<br><font size=2 face="sans-serif">Compiled it as follows : </font>
<br><font size=2 face="sans-serif">cc -c -I/usr/local/lib/erlang/lib/erl_interface-3.5.5.3/include
test.c</font>
<br><font size=2 face="sans-serif">No errors in compiling</font>
<br>
<br><font size=2 face="sans-serif">Tried to link it as follows:</font>
<br><font size=2 face="sans-serif">ld -L/usr/local/lib/erlang/lib/erl_interface-3.5.5.3/lib
test.o -lerl_interface -lei -o test</font>
<br><font size=2 face="sans-serif">but during liking, I got tons of errrs</font>
<br>
<br><font size=2 face="sans-serif">Sample error :</font>
<br><font size=2 face="sans-serif">=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2008.01.30
11:29:02 =~=~=~=~=~=~=~=~=~=~=~=</font>
<br><font size=2 face="sans-serif">ld -L/usr/local/lib/erlang/lib/erl_interface-3.5.5.3/lib
test.o -lerl_interface -lei -o test</font>
<br><font size=2 face="sans-serif">ld: warning: cannot find entry symbol
_start; defaulting to 080480a0</font>
<br><font size=2 face="sans-serif">/usr/local/lib/erlang/lib/erl_interface-3.5.5.3/lib/liberl_interface.a(erl_eterm.o):
In function `erl_print_term':</font>
<br><font size=2 face="sans-serif">/home/j.bhanot/Download/H.248/otp_src_R12B-0/lib/erl_interface/src/legacy/erl_eterm.c:860:
undefined reference to `__ctype_b_loc'</font>
<br><font size=2 face="sans-serif">/home/j.bhanot/Download/H.248/otp_src_R12B-0/lib/erl_interface/src/legacy/erl_eterm.c:870:
undefined reference to `_IO_putc'</font>
<br><font size=2 face="sans-serif">/home/j.bhanot/Download/H.248/otp_src_R12B-0/lib/erl_interface/src/legacy/erl_eterm.c:873:
undefined reference to `fputs'</font>
<br><font size=2 face="sans-serif">/home/j.bhanot/Download/H.248/otp_src_R12B-0/lib/erl_interface/src/legacy/erl_eterm.c:876:
undefined reference to `_IO_putc'</font>
<br><font size=2 face="sans-serif">/home/j.bhanot/Download/H.248/otp_src_R12B-0/lib/erl_interface/src/legacy/erl_eterm.c:962:
undefined reference to `fprintf'</font>
<br>
<br>
<br><font size=2 face="sans-serif">Please find the attched complete error
log:</font>
<br>
<br>
<br><font size=2 face="sans-serif">Would appreciate any help</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif">jb</font>
<br>
<br><font size=2 face="sans-serif">____________________________________________</font><pre>=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
</pre>