Using Threads

Daniel Néri dne@REDACTED
Fri Jun 8 00:32:23 CEST 2001


Scott Lystig Fritchie <fritchie@REDACTED> writes:

> 	FreeBSD:
> 
>            THR_LIBS="-lc_r"
>            THR_DEFS="-DUSE_THREADS -D_REENTRANT"
>            THR_DEFS="$THR_DEFS -DPOSIX_THREADS -D_THREAD_SAFE"
> 
> You'll come to much grief and woe if you don't include -DUSE_THREADS
> *and* -D_REENTRANT.

Aren't you supposed to use the "-pthread" option[*] to cc, to
compile/link pthreaded stuff on FreeBSD?


Regards,
    --Daniel


[*] http://www.FreeBSD.org/cgi/man.cgi?query=pthread&apropos=0&sektion=0&manpath=FreeBSD+4.3-RELEASE&format=html

-- 
Daniel Neri
dne@REDACTED



More information about the erlang-questions mailing list