Joined
Last Seen
-1 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: This piece of code gives the compilation error like /tmp/cc8YlrH3.o: In function `main': checkArray.c:(.text+0xea): undefined reference to `thread_function' checkArray.c:(.text+0xfa): undefined reference to `pthread_creat' checkArray.c:(.text+0x128): undefined reference to `pthread_join' so modify this program as below: #include<stdlib.h> #include<stdio.h> #include<time.h> #include <pthread.h> void *thread_function(void *arg) { pthread_t pt; pt = pthread_self(); printf("Thread %x … |
The End.