From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,89dd1af5ea713090,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-04-08 15:17:56 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!ctc.com!news.mic.ucla.edu!library.ucla.edu!europa.eng.gtefsd.com!gatech!newsxfer.itd.umich.edu!gumby!wupost!waikato!canterbury.ac.nz!otago.ac.nz!news.otago.ac.nz!deano From: deano@rabbit.otago.ac.nz (Dean McRobie) Subject: pthreads compilation problem Message-ID: Sender: usenet@news.otago.ac.nz (News stuff) Nntp-Posting-Host: rabbit.otago.ac.nz Organization: Computer Graphics Lab, University of Otago Date: Fri, 8 Apr 1994 22:17:56 GMT Hi OSFers, I am trying to use DEC OSF/1 for am Operating Systems course I am teaching, I was going to write a process simulator and had thought to use the threads facility of OSF/1 to simulate the processes. However, I can not get ANYTHING to compile!!! In fact: #include #include int main(int argc, char **argv) { printf("boo!\n"); } followed by "cc -o boo boo.c -lpthread -lmach" says: Segmentation Fault! HELP!!! What have I done wrong?!?!?!? I can not get to the DEC example programs as they are unable to be extracted from the documentation unless I intend to type them in (a last resort). Any help would be appreciated! Deano -- --------------------------------------------------------------------- Dean McRobie | "Never was a cornflake girl, thought that Assistant Lecturer | was a good solutions hanging with the University of Otago | raisin girls, she's gone to the other side Dunedin, New Zealand | givin us the old heave ho, things are deano@rabbit.otago.ac.nz | getting kind of gross" Tori Amos