This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: info


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
LD_LIBRARY_PATH

>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 gcc.gnu.org

cheers
Puneet



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]