Hi all,
how do i compile a c program into a library on solaris
Thanks in advance
Zing
Hi all,
how do i compile a c program into a library on solaris
Thanks in advance
Zing
I believe it matters what compiler you are using. Read the man page for your specific compiler or search the 'Net.
For gcc - see this
link
The closest unix equivalent of a dll would be a shared library. Staring at the Solaris man pages, it looks to me like:
cc -KPIC x.c
cc -KPIC y.c
cc -KPIC z.c
ld -G -Bdynamic -o libxyx.so x.o y.o z.o
might work. But I don't have a Sun compiler to test it.
Thanks guys, i changed my approach and i m now using an exe.