Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Hiding symbols at link time on hp-ux 10.20

SOLVED
Go to Solution
Occasional Contributor

Hiding symbols at link time on hp-ux 10.20


Hi,
I am trying to build libraries in 10.20 with the "-h" link option.

I actually pass a file containing all the symbols to hide via +Wl,-c...

I get errors like:
/usr/c/bin/ld: can't hide symbol...
for all the symbols I want to hide.

Do you know why ?
How can I fix this ?

Thank you,
Amedee
1 ACCEPTED SOLUTION
Esteemed Contributor Esteemed Contributor

Re: Hiding symbols at link time on hp-ux 10.20

please check whether the symbols are resolved within the module (executable or shared library) that you are trying to build. if they are not, they are unsats and the linker will not hide them.
3 REPLIES
Esteemed Contributor Esteemed Contributor

Re: Hiding symbols at link time on hp-ux 10.20

please check whether the symbols are resolved within the module (executable or shared library) that you are trying to build. if they are not, they are unsats and the linker will not hide them.
Occasional Contributor

Re: Hiding symbols at link time on hp-ux 10.20

Hi Ranganath,

Thanks for you reply.

You were right, the symbols were not concerning the module to be built.
This is not a problem anymore.

Thanks a lot,
Amedee
Highlighted
Occasional Contributor

Re: Hiding symbols at link time on hp-ux 10.20

closing thread.