Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* pthreads libraries
@ 1996-12-04  5:00 William R. Pearson
  1996-12-04  5:00 ` Brian Silver
  1996-12-05  5:00 ` Dave Butenhof
  0 siblings, 2 replies; 3+ messages in thread
From: William R. Pearson @ 1996-12-04  5:00 UTC (permalink / raw)




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?

Bill Pearson



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pthreads libraries
  1996-12-04  5:00 pthreads libraries William R. Pearson
@ 1996-12-04  5:00 ` Brian Silver
  1996-12-05  5:00 ` Dave Butenhof
  1 sibling, 0 replies; 3+ messages in thread
From: Brian Silver @ 1996-12-04  5:00 UTC (permalink / raw)



William R. Pearson wrote:
> 
[Snip]
> However, I do not see them anywhere, and cc -pthreads says they cannot
> be found.  I assume I did not install them properly.

They should be in /usr/shlib. They will not be in /usr/lib.

Brian.
-- 

There are too many automated email-address-mailing-list-makers
on the 'net these days. My email address is below, just remove the
extra spaces if you'd like to send me email. I am sorry my Reply-To 
and From addresses are misleading. You probably understand.

Machine unreadable email address: silver @ zko.dec.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pthreads libraries
  1996-12-04  5:00 pthreads libraries William R. Pearson
  1996-12-04  5:00 ` Brian Silver
@ 1996-12-05  5:00 ` Dave Butenhof
  1 sibling, 0 replies; 3+ messages in thread
From: Dave Butenhof @ 1996-12-05  5:00 UTC (permalink / raw)



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 ]----------------/



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-12-05  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox