[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Build requirements for threaded code?



-pthread means -D_REENTRANT and -lpthread.  -D_REENTRANT is basically
useless and you should use standard feature test macros or _GNU_SOURCE for
what you want.  So just linking with -lpthread is what I would call the
normal and recommended practice.  

The man pages are not maintained by people who ask the people who know.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]