Puneet Singhal
Tue Feb 20 23:27:00 GMT 2001

Hi Suraj

>1) what is a shared object?
a shared object is a piece of code which is like a DLL on a windows problem.
at link time of a proggy only the adresses of symbols are added to the exec.
At runtime the shared object is loaded.Its path must appear in

>2)how to make a shared object in unix........
you can use GCC for it.
for *compiling* use the switch -fPIC and then use -shared to create the
library. it usually has an extension of .so.

>Is there any material avilable on the net from where i can get a
check out the manuals on


More information about the Gcc-help mailing list