[erlang-questions] where is lib file of erl_driver

Xu Cao <>
Wed Jun 17 11:17:56 CEST 2009


I have found the lib file named erl_rx_driver.so under the path you told me.
But the error still prompted after I have specified the lib path in my 
makefile.
The command line is
g++ -o test -I/usr/lib/erlang/usr/include -I/usr/lib/erlang/include 
-I/usr/lib/erlang/lib/erl_interface-3.5.9/include 
-I/mnt/hgfs/work/study/driver_test/include test.cpp 
-L/usr/lib/erlang/lib/erl_interface-3.5.9/lib 
-L/usr/lib/erlang/lib/common_test-1.3.4/priv/lib -lerl_interface -lei 
-lpthread
Is there anything I missed?

Raymond Xiong 写道:
> It's under ${ERLANG_ROOT}/lib/common_test-${ver}/priv/lib.
> ERLANG_ROOT is usually /usr/lib/erlang or /lib/erlang, depending
> on how erlang is installed on your machine. You can find that by
> checking where erl command point to (it is a symbol link usually)  
>
> On 06/17/09, ?? wrote:
>   
>> Hi:
>>   The following error prompted when I compiled my source code:
>>
>> undefined reference to `driver_alloc_binary'
>>
>>   I have included the erl_driver.h but it seems that the lib file can 
>> not be located correctly.
>>   So where can I find the lib file?
>>   Thanks a lot.
>>
>> ________________________________________________________________
>> erlang-questions mailing list. See http://www.erlang.org/faq.html
>> erlang-questions (at) erlang.org
>>
>>     
>
>   



More information about the erlang-questions mailing list