Compiling Linked-in Drivers on Mac OS X

Sean Hinde <>
Fri Mar 28 09:24:45 CET 2003

> I'm trying to get the linked-in driver example in the
> Erlang documentation to compile for Mac OS X.  I'm
> using the following command for gcc-2.95.2:
> gcc -o exampledrv
> -I/usr/local/lib/erlang/erts-
> -flat_namespace -shared complex.c port_driver.c
> and I get:
> /usr/bin/ld: Undefined symbols:
> _main
> _driver_alloc
> _driver_free
> _driver_output
> I know dynamic libraries work a little differently in
> OS X, but I'm not very experienced with them.  Any
> help would be appreciated.

There are some nice hints down at the bottom of the OS X section of the top
level README of the R9B-1 release.


This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.

More information about the erlang-questions mailing list