This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: info
- To: "Suraj Chatrath" <suraj_chatrath at infy dot com>,<gcc-help at gcc dot gnu dot org>
- Subject: RE: info
- From: "Puneet Singhal" <puneet at opussoft dot com>
- Date: Mon, 5 Feb 2001 12:44:38 +0530
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