From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4056fd8d47803409 X-Google-Attributes: gid1164f8,public From: dsr@lns598.lns.cornell.edu (Daniel S. Riley) Subject: Re: pthreads Date: 1996/02/07 Message-ID: #1/1 X-Deja-AN: 138699026 sender: dsr@lns100.lns.cornell.edu references: organization: Wilson Lab, Cornell U., Ithaca, NY 14853 newsgroups: comp.sys.dec In article Joshua Broch writes: broch> Is anyone aware of a problem with the pthreads library for DEC broch> Unix? If I take a perfectly normal program, such as a hello broch> world program, and link it in with the pthreads library, the broch> program SEGFAULTS immediately on execution. You need the thread-safe versions of a bunch of libraries. If you are using cc, link with 'cc ... -threads', not -lpthreads. If you are using something like gcc that doesn't support '-threads', link something with 'cc -v ... -threads' and copy what it does. -- Dan Riley Internet: dsr@lns598.lns.cornell.edu Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr) "Distance means nothing/To me." -Kate Bush