Re: libpthread revision-level (175 Views)
Reply
Occasional Contributor
Mr. Kiran N. Mehta
Posts: 2
Registered: ‎05-27-1999
Message 1 of 3 (175 Views)

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
Occasional Visitor
John Golaszewski
Posts: 1
Registered: ‎06-07-1999
Message 2 of 3 (175 Views)

Re: libpthread revision-level

Try the "what" command.
Occasional Visitor
Kiran N. Mehta_1
Posts: 1
Registered: ‎06-21-1999
Message 3 of 3 (175 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.