Operating System - HP-UX
1753767 Members
5826 Online
108799 Solutions
New Discussion юеВ

Re: aCC shared library option(-b or -n)

 
Deepak_5
Advisor

aCC shared library option(-b or -n)

Hi,

There are two option in aCC for creation
of shared libraries i.e. -n and -b.
What is the difference between these
two options, can anyone give an application
usage.

Also,
aCC -n gives warning for unresolved symbol,
whereas whereas aCC -b does not any warnings
of unresolved symbols when creating shared library, is there any reason for this ?

Thanks and Regards
Deepak
2 REPLIES 2
Ravi_8
Honored Contributor

Re: aCC shared library option(-b or -n)

Hi,
-n Cause the output file from the linker to be marked as shareable.

-b Cause the linker ld(1) to create a shared library rather than a normal executable file.
never give up
Ravi_8
Honored Contributor

Re: aCC shared library option(-b or -n)

Hi,
-n Cause the output file from the linker to be marked as shareable.

-b Cause the linker to create a shared library rather than a normal executable file.
never give up