From: sp@canal.osf.org (Simon Patience)
Subject: Re: Compiling with Pthreads
Date: 25 May 1994 20:16:23 GMT [thread overview]
Message-ID: <2s0bmn$hsu@paperboy.osf.org> (raw)
In-Reply-To: MDTANX.94May25114815@poptart.cs.umd.edu
In article <MDTANX.94May25114815@poptart.cs.umd.edu>, mdtanx@poptart.cs.umd.edu (Michael D. Tan) writes:
>
> I have a C program which uses the pthreads package. I'm trying to
> compile it on an Alpha running OSF/1 v1.3. I have included
> <phtread.h>. When I try to compile I have to say "cc test.c
> -lpthreads" in order to succeed.
You need to say
cc test.c -lpthread -lmach -lc_r
in that order. I think you can also say
cc -threads test.c
but I will wait for someone from DEC to say that.
Simon.
--
Simon Patience Phone: (617) 621-7376
Open Software Foundation FAX: (617) 621-8696
1 Cambridge Center Email: sp@osf.org
Cambridge, MA 02142 uunet!osf!sp
prev parent reply other threads:[~1994-05-25 20:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-05-25 15:48 Compiling with Pthreads Michael D. Tan
1994-05-25 20:16 ` Simon Patience [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