Operating System - HP-UX
1754420 Members
2588 Online
108813 Solutions
New Discussion юеВ

Re: libpthread revision-level

 
Mr. Kiran N. Mehta
Occasional Contributor

libpthread revision-level

I am using an HP-UX B.11.00 A 9000/871 machine. The
"man pthread" page says that

"...a multi-threaded application must define the
appropriate POSIX Revision Level at compile time
and link against the pthread library via -lpthread.
For example:
cc -D_POSIC_C_SOURCE=199506L -o myapp -c myapp.c -lpthread"

My question is, how does one find out the *appropriate*
revision level? Any help will be appreciated.

Thanks,
Mr. Kiran N. Mehta
Pune, India
2 REPLIES 2
John Golaszewski
New Member

Re: libpthread revision-level

Try the "what" command.
Kiran N. Mehta_1
New Member

Re: libpthread revision-level

To : John Golaszewski (and et. al.

I'm told that the information obtained by the "what"
command on a binary pertains to the _binary_ revision
level and that it has no correlation with the revision
level value needed for aCC -D_POSIX_C_SOURCE... Thanks,
though.

Regards,
Kiran