Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: David Hinz <7587678@mcimail.com>
Subject: Problem using when pthread_exc.h
Date: 1995/09/25	[thread overview]
Message-ID: <447dq3$6gv@hermes.dna.mci.com> (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




                 reply	other threads:[~1995-09-25  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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