[erlang-questions] Source code for erl_driver API missing?

J partdavid@REDACTED
Tue Mar 18 19:54:53 CET 2008


On Mon, Mar 17, 2008 at 5:03 PM, elmer_fwd@REDACTED
<elmer_fwd@REDACTED> wrote:
> I was able to find the erl_driver.h file and it has all the
> EXTERNS the erl_driver API.
>
> I have grep'ed through the entire elang tree and found no
> code the for erl_driver.

It's in erts, I included liberts.a when compiling my driver, which
installs in .../usr/lib/liberts{,_r}.a, at least on Unix. I haven't
tried to do this on a Cygwin build.

>
> I believe this is why I can't compile the example code
> complex.c, complex5.erl and port_driver.c
>
> The results of doing a compile is:
>
> gcc -o exmpledrv -shared complex.c port_driver.c
> /cygdrive/c/DOCUME~1/s360852/LOCALS~1/Temp/ccoVpV4D.o:port_driver.c:(.text+0xe):
> undefined reference to `_driver_alloc'
> /cygdrive/c/DOCUME~1/s360852/LOCALS~1/Temp/ccoVpV4D.o:port_driver.c:(.text+0x2f):
> undefined reference to `_driver_free'
> /cygdrive/c/DOCUME~1/s360852/LOCALS~1/Temp/ccoVpV4D.o:port_driver.c:(.text+0x98):
> undefined reference to `_driver_output'
> collect2: ld returned 1 exit status
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list