[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help : Threads in AIX
From: |
Swaminathan, Sangeetha (Cognizant) |
Subject: |
Help : Threads in AIX |
Date: |
Sat, 17 Aug 2002 13:20:44 +0530 |
Hi:
I have CDoc.h and CDoc.C.
My CDoc.h has #include<pthread.h>, and a member variable pthread_mutex_t
mutex;
In CDoc.C,
The constructor has pthread_mutex_init(&mutex, NULL);
and MyFunction() calls: pthread_mutex_lock (&mutex); and
pthread_mutex_unlock(&mutex);
and the destructor calls pthread_mutex_destroy(&mutex);
I am able to compile CDoc.C and generate a CDoc.o
But when I create a libCDoc.so (a shared object) from the CDoc.o, I get
these errors:
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
However, in another case: Main.h and Main.C where I don't define any classes
(I used the other classes already defined):
I create threads, and use the above thread functions as well. I don't get
the error. But I don't builb a .so also.
What could be the problem??
Please help!!
Thanks in advance..
Sangeetha Swaminathan
Ph: 811 3063 * 2253
InterScan_Disclaimer.txt
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Help : Threads in AIX,
Swaminathan, Sangeetha (Cognizant) <=