From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4d324698321e4a33 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,4d324698321e4a33 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-05-25 22:23:27 PST Path: bga.com!news.sprintlink.net!sundog.tiac.net!usenet.elf.com!rpi!gatech!europa.eng.gtefsd.com!MathWorks.Com!news.kei.com!bloom-beacon.mit.edu!paperboy.osf.org!sp From: sp@canal.osf.org (Simon Patience) Newsgroups: comp.unix.osf.osf1,comp.sys.dec Subject: Re: Compiling with Pthreads Date: 25 May 1994 20:16:23 GMT Organization: Open Software Foundation Distribution: world Message-ID: <2s0bmn$hsu@paperboy.osf.org> References: NNTP-Posting-Host: canal.osf.org Xref: bga.com comp.unix.osf.osf1:1700 comp.sys.dec:3328 In article , 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 > . 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