Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: neideck@bier.kar.dec.com (Burkhard Neidecker-Lutz)
Subject: Re: pthreads compilation problem
Date: 11 Apr 1994 15:24:30 GMT	[thread overview]
Message-ID: <2obq3eINNt17@usenet.pa.dec.com> (raw)
In-Reply-To: DEANO.94Apr9101756@rabbit.otago.ac.nz

In article <DEANO.94Apr9101756@rabbit.otago.ac.nz> deano@rabbit.otago.ac.nz (Dean McRobie) writes:
>#include <stdio.h>
>#include <pthread.h>
>
>int main(int argc, char **argv)
>{
>  printf("boo!\n");
>}
>
>followed by "cc -o boo boo.c -lpthread -lmach" says:
>Segmentation Fault!
>

Make that:

	#include <pthread.h>		/* Has to go first */
	#include <stdio.h>

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




  parent reply	other threads:[~1994-04-11 15:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-04-08 22:17 pthreads compilation problem Dean McRobie
1994-04-11 12:37 ` Simon Patience
1994-04-11 15:24 ` Burkhard Neidecker-Lutz [this message]
1994-04-11 16:47   ` Steve Strange USG
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