1755639 Members
3080 Online
108837 Solutions
New Discussion юеВ

Re: pthread_create

 
SOLVED
Go to solution
Frost Support
Occasional Contributor

pthread_create

I am trying to create a thread using pthread_create in a C program compiled cc -Ae. This is on an HP-UX11.11
Includes are :







I cannot get past pthread_create which returns: ENOSYS error 251 Function not implemented.

Where do I go from here please?

2 REPLIES 2
Umapathy S
Honored Contributor
Solution

Re: pthread_create

Frost,
Make sure that you link with -lpthread.

It seems the pthread library is missing. So, when you link with -lpthread

It linked and worked fine in my system. Of course, I didnt test with a client..

Check whether the AnsiC bundle (B3901BA) is installed properly. Check whether the man page for pthread_create is avaiable.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Massimo Bianchi
Honored Contributor

Re: pthread_create

Hi,
from man pthread_create,
you can see:

#include

HTH,
Massimo