* Problem using when pthread_exc.h
@ 1995-09-25 4:00 David Hinz
0 siblings, 0 replies; only message in thread
From: David Hinz @ 1995-09-25 4:00 UTC (permalink / raw)
I am converting a threaded application from using just threads to threads with
exception handling. I changed the #include <pthread.h> to #include
<pthread_exc.h> and am now getting errors on pthread_mutex_init and
pthread_cond_init function calls. The following demonstrates the error:
#include <stdio.h>
#include <pthread_exc.h>
int main (int argc, char *argv[])
{
pthread_mutex_t test1;
int result;
result = pthread_mutex_init (&test1, pthread_mutexattr_default);
}
cc -std1 -verbose -c -o threadtest.o threadtest.c -threads
/usr/lib/cmplrs/cc/cfe: Error: threadtest.c, line 10: Reference an expression
of void type or an incomplete type. (3.2.2.1)
result = ptdexc_mutex_init(&test1, pthread_mutexattr_default) ;
-----------------------------^
Is there a compile switch that I am missing or some other #include????
This happens on both OSF/1 3.0 and 3.2c.
Thanks for any info,
David Hinz
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-09-25 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-09-25 4:00 Problem using when pthread_exc.h David Hinz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox