1820879 Members
4954 Online
109628 Solutions
New Discussion юеВ

pthread.h file missing

 
Sreedhar Gupta
Occasional Contributor

pthread.h file missing

Hi,

I am using HP Ansi C compiler on HPUX 10.20. When i am compiling my application, i am getting error "Can't open include file 'pthread.h'". I think pthread.h file will come with compiler, but i searched the include directory but not able to found. Can any one please tell me where pthread.h file resides. Thanks in advance.

Sreedhar Gupta
5 REPLIES 5
Adam J Markiewicz
Trusted Contributor

Re: pthread.h file missing

I see mine under:

/usr/include/sys/pthread.h


Good luck

Adam
I do everything perfectly, except from my mistakes
Sreedhar Gupta
Occasional Contributor

Re: pthread.h file missing

Thanks for reply.
But it is missing in my system. Can you please tell me where can i get it? It is very urgent.

Thanks in advance.

Sreedhar Gupta
Adam J Markiewicz
Trusted Contributor

Re: pthread.h file missing

Frankly I didn't install anything on that machine - it was here when I started working.

You can check also /usr/include/pthread.h, but I guess you already did it. On my machine I have both, but one is just a simple #include of another.

But - if you do'nt have the header - do you have the library? (in my case /usr/lib/libpthread.sl)

Good luck

Adam
I do everything perfectly, except from my mistakes
T G Manikandan
Honored Contributor

Re: pthread.h file missing

The pthread.h file can be loaded by installing
DCE-CoreTools bundle from the 10.20 COre OS cdrom.

You can install them go get that required header file.

check it up

Thanks
yogiraj
Advisor

Re: pthread.h file missing

hi,
before HP 11 threading architecture was provided in form of dce threads based on cma.
So you'll be able to find 'pthread.h' in your $(DCE)/include folder most probably /opt/dce/include.

regds
yogi
patilyogi