General
cancel
Showing results for 
Search instead for 
Did you mean: 

Error encountered while compiling a cpp file

Mayurnath Puli
Occasional Visitor

Error encountered while compiling a cpp file

Hi,
I have a small hello world program in C++ and when i am trying to compile it i get the below error

--> g++ hello.C

---------
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'pthread_create' in load module '/usr/local/lib/hpux32/libintl.so'.
---------

Please let me know why does this error occur and how do i resolve this issue.

Thanks,
--Mayur
3 REPLIES
Dennis Handly
Acclaimed Contributor

Re: Error encountered while compiling a cpp file

>/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'pthread_create' in load module /usr/local/lib/hpux32/libintl.so.

This is impossible. On 11.23 there should be stubs in libc.so that include pthread_create.

What OS version do you have and what libc patch do you have?
Mayurnath Puli
Occasional Visitor

Re: Error encountered while compiling a cpp file

uname -a --> on my machine gives
-------
HP-UX amazon B.11.23 U ia64 3469321783 unlimited-user license
-------

and for the libc patch, i am running the command "swlist | grep libc" but not able to get the patch details. Please let me know if there is any easy way.

Thanks,
--Mayur
Dennis Handly
Acclaimed Contributor

Re: Error encountered while compiling a cpp file

>Please let me know if there is any easy way.

swlist | grep -i libc
PHCO_34599 1.0 libc cumulative patch