Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Dave Butenhof <butenhof@zko.dec.com>
Subject: Re: pthreads libraries
Date: 1996/12/05	[thread overview]
Message-ID: <32A6D92D.6EEA@zko.dec.com> (raw)
In-Reply-To: kj20d6z4gr.fsf@alpha0.bioch.virginia.edu


William R. Pearson wrote:
> 
> I have just upgraded to Digital Unix 4.0a, and wish to use the pthreads
> libraries rather than cc -threads.
> 
> However, I do not see them anywhere, and cc -pthreads says they cannot
> be found.  I assume I did not install them properly.
> 
> What software kit must I install to get pthreads?

Wrong switch. You want "cc -pthread", not "cc -pthreads". The old
switch, for Draft 4 (DCE) threads and CMA threads was plural, but the
new switch, for POSIX threads, is singular.

The library is /usr/shlib/libpthread.so. If you need to do a manual
link with ld for whatever reason use "-lpthread -lmach -lexc", right
before the "-lc" at the end of the line. You should always compile with
-pthread -- but if you don't, use -D_REENTRANT.

There's no optional kit for threads -- it's part of the base system.

However -- there's no static library (libpthread.a) for threads. You
cannot link a threaded program -non_shared. We'll be restoring
libpthread.a in the future, once kernel interface have stabilized.

/---[ Dave Butenhof ]-----------------------[ butenhof@zko.dec.com ]---\
| Digital Equipment Corporation           110 Spit Brook Rd ZKO2-3/Q18 |
| 603.881.2218, FAX 603.881.0120                  Nashua NH 03062-2698 |
\-----------------[ Better Living Through Concurrency ]----------------/



      parent reply	other threads:[~1996-12-05  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-04  5:00 pthreads libraries William R. Pearson
1996-12-04  5:00 ` Brian Silver
1996-12-05  5:00 ` Dave Butenhof [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox