Linking can be dynamic or static.
 By default gcc compiler makes dynamically linked executables.That does
mean it will be using shared Libraries during run time.Usually the
libraries reside within /usr/lib or /lib.
 In case of static linking ,it prevents linking with shared libraries.
but this will blow up the size of exe.though its faster to load.

 you can find more information on this in man pages of gcc.
 you can make a statically linked binary with option "-static".
 
also the man pages of "ld" giving options for static and dynamic linking.

  If you have an archieve say librimez.a and also a shared object library
librimez.so.,then by default the compiler will link to *.so files.ie
dynamically linked binary.
  you can create shared object library with the "-shared" option in gcc.

  Hope this may be helpful.
sudheer


On Mon, 19 Apr 1999, rimez wrote:

> 
> Does anyone know where I can find info on making statically linked binaries?
> thanks,
> rimez
> --
> To get out of this list, please send email to [EMAIL PROTECTED] with
> this text in its body: unsubscribe suse-linux-e
> Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
> archive at http://www.suse.com/Mailinglists/suse-linux-e/index.html
> 

--
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archive at http://www.suse.com/Mailinglists/suse-linux-e/index.html

Reply via email to