From: peltz@jaka.ece.uiuc.edu (Steve Peltz)
Subject: Re: Problems with thread library in OSF1 V3.2
Date: 1996/07/22 [thread overview]
Message-ID: <4t0eaf$agt@vixen.cso.uiuc.edu> (raw)
In-Reply-To: utfhgr1t1aa.fsf@susie.EECS.Berkeley.EDU
In article <utfhgr1t1aa.fsf@susie.EECS.Berkeley.EDU>,
Rajeev Kumar Ranjan <rajeev@susie.EECS.Berkeley.EDU> wrote:
> From: peltz@jaka.ece.uiuc.edu (Steve Peltz)
> Keywords: Cc:
> >The compile command I used is: cc -g test.c -lpthreads
>
> Instead of -lpthreads, just use -threads (or -pthread if you upgrade to
> DU 4.0).
>
>The OS version that I have (OSF1 V3.2 41.64 alpha) does not have
>libthread.a. But is it certain that the presence of libthread.a will
>solve the problem?
Use -threads, NOT -lthreads or -lthread or -lpthreads or anything else.
-threads is a flag to cc that tells it to use the thread-safe versions
of libraries. When you explicitly specified libpthreads.a, you got some
thread-safe versions and some non-thread versions, and the two sets of
incompatible routines obviously don't work very well together.
-pthread is similar (but only available on DU 4.0), but specifies to use
the final version of the POSIX threads interface. -threads uses a draft
version (-threads is still available in 4.0).
prev parent reply other threads:[~1996-07-22 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-19 4:00 Problems with thread library in OSF1 V3.2 Rajeev Kumar Ranjan
1996-07-21 4:00 ` Steve Peltz
1996-07-21 4:00 ` Rajeev Kumar Ranjan
1996-07-22 4:00 ` Steve Peltz [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