Operating System - Linux
1753481 Members
3658 Online
108794 Solutions
New Discussion юеВ

Re: Creating Shared Libraries in HP UNIX 11i

 
CA1490051
Frequent Advisor

Creating Shared Libraries in HP UNIX 11i

Hi All,

I have installed gcc version
hp-gcc64-4.2.1 in the hp UNIX 11i system.

I wanted to know how to create the shared and static libraries using gcc compiler.

Can any one help me solving this .

thanks in advance
Vikram
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Creating Shared Libraries in HP UNIX 11i

Hi Vikram:

See:

http://gcc.gnu.org/onlinedocs/

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Creating Shared Libraries in HP UNIX 11i

Archive libs are created with ar(1).
To create shlibs with aC++ see:
http://docs.hp.com/en/10946/libs.htm#createlib
The steps are similar, compile with PIC then tell linker to create a shlib.
CA1490051
Frequent Advisor

Re: Creating Shared Libraries in HP UNIX 11i

Hi ,

Thank you very much for your support

regards
Vikram