erl_interface compilation problem

blaguehubert <>
Mon Jan 17 00:38:44 CET 2005


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
/tmp/cc0vVjZx.o(.text+0x60): In function `main':
: undefined reference to `erl_init'
/tmp/cc0vVjZx.o(.text+0x7a): In function `main':
: undefined reference to `erl_connect_init'
/tmp/cc0vVjZx.o(.text+0x85): In function `main':
: undefined reference to `erl_connect'
/tmp/cc0vVjZx.o(.text+0x9a): In function `main':
: undefined reference to `erl_err_quit'
/tmp/cc0vVjZx.o(.text+0xad): In function `main':
: undefined reference to `erl_format'
/tmp/cc0vVjZx.o(.text+0xd2): In function `main':
: undefined reference to `erl_rpc'
/tmp/cc0vVjZx.o(.text+0xe7): In function `main':
: undefined reference to `erl_err_msg'
/tmp/cc0vVjZx.o(.text+0xf2): In function `main':
: undefined reference to `erl_free_term'
/tmp/cc0vVjZx.o(.text+0xfd): In function `main':
: undefined reference to `erl_iolist_to_string'
/tmp/cc0vVjZx.o(.text+0x10b): In function `main':
: undefined reference to `erl_free_term'
/tmp/cc0vVjZx.o(.text+0x127): In function `main':
: undefined reference to `erl_free'
collect2: ld a retourné 1 code d'état d'exécution
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wait_search_engine.c
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050117/1e2ef633/attachment.c>


More information about the erlang-questions mailing list