how to create .so files from .o files in HP-UX

Hi,
I need to create .so files from .o files(compiled c files) in HP-UX env. I dont have GCC in the HP-UX server. Is there any other way to create without using GCC.

I have done this in solaris.I had been using this command

/opt/SUNONE8/SUNWspro/bin/cc -G -o  abc.so ./abc.o $ORACLE_HOME/lib/libsqlplus.a -lc -lcrypt

for creating .so files from .o files (compiled c files) in sun OS.
Now i have to create the same in HP-UX. Please give me the HP equivalent tool/command which creates .so files like in SUN (no GCC).

Thanks in Advance.

do you know what it is the HPUX compiler 'cc' ???

I think you should use the options: "-shared -o " to create dynamic library.

i used cc. But with options "-G -o" as i used in solaris. Its throwing this error

i used "-s -o", and got this error,

if i give "-shared -o", it shows "options -h a r e d not available,ignored".

Oh, sorry, i think that i was mistaken about the platform.

Try this:
   $ ld -b -o libfunctions.sl function1.o function2.o function3.o

Looks like you are using the HPUX cc which is a basic KR c , its there mainly to recompile the HPUX kernel...
Either you pay for HP ANSI C (but there is a C++ lib patch...free... used for e.g. oracle...)
Or you install gcc you get at your prefered HP archive&porting site

---------- Post updated at 14:34 ---------- Previous update was at 11:05 ----------

You can download from here:
Search Archive 2.0.0

It worked... It worked..:D:D

I am able to build the so's using ld command. Thanks Pgodorica, VBE.. u r great....