1825801 Members
2317 Online
109687 Solutions
New Discussion

Re: s800 shared library

 
SOLVED
Go to solution
stefano_20
Occasional Contributor

s800 shared library

Can anyone help me to make a s800 shared library? I'm working on HP-UX11i.

Thanks in advance.
4 REPLIES 4
Steve Steel
Honored Contributor

Re: s800 shared library

Hi

http://www.docs.hp.com/hpux/onlinedocs/2213/libs.htm#libraries


Contains it all.


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ravi_8
Honored Contributor

Re: s800 shared library

Hi,

we uses procedure given in the URL by Steve,it works well
never give up
Stanimir
Trusted Contributor
Solution

Re: s800 shared library

Hi!
I found a problem with using +z - option on my mashine.
So try this procedure:

1.Creating shared object:
#gcc -c -fPIC ./mysource1.c
#gcc -c -fPIC ./mysource2.c

2.Creating shared-library:
#ld -b -o libmy.sl mysource1.o mysource2.o

3.copy libmy.sl to /usr/lib,
also: SHLIB=/usr/lib

4.Using mylib.sl for compilating new exec:
gcc -lmy ./mynewsource.c

Regards,Stan

Stanimir
Trusted Contributor

Re: s800 shared library

About above: No SHLIB, but SHLIB_PATH !!! :)