From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,89dd1af5ea713090 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-04-11 08:24:30 PST Path: gmd.de!xlink.net!howland.reston.ans.net!agate!ames!decwrl!pa.dec.com!bier.kar.dec.com!neideck From: neideck@bier.kar.dec.com (Burkhard Neidecker-Lutz) Newsgroups: comp.unix.osf.misc Subject: Re: pthreads compilation problem Date: 11 Apr 1994 15:24:30 GMT Organization: CEC Karlsruhe Message-ID: <2obq3eINNt17@usenet.pa.dec.com> References: NNTP-Posting-Host: BIER In article deano@rabbit.otago.ac.nz (Dean McRobie) writes: >#include >#include > >int main(int argc, char **argv) >{ > printf("boo!\n"); >} > >followed by "cc -o boo boo.c -lpthread -lmach" says: >Segmentation Fault! > Make that: #include /* Has to go first */ #include and cc -o boo boo.c -lpthread -lmach -lc_r and live happily ever after... Burkhard Neidecker-Lutz Distributed Multimedia Group, CEC Karlsruhe BERKOM II Project Digital Equipment Corporation neideck@nestvx.enet.dec.com