[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: what is the difference between shared and static libraries



hi,
when the lib is statically linked in the prog, the binary includes the 
routine of the library also, hence the executable is stand alone. But, when 
the lib is dynamically included in the prog, the reference lib information is 
only included in the linked binary. While running that code., the library is 
called and when needed, but that linking information. Hence the compiled and 
linked code remain smaller.

Archan Paul
-- 
-----------------------------------
Archan Paul (Enlightened by GNU/Linux)
www.bigfoot.com/~archanp
icq - 61737056
-----------------------------------

On Thu, 16 Nov 2000, Ramesh.S wrote:
> hi all,
>
> can anybody explain me the difference between the shared and static
> libraries.. both are going to be included before executoion..
> but even static libraries are also shared among rprograms know then why
> specifically two names are given.. i am not clear in this hting..
>
> also if i am writing a fucntion for converting a long value to  a string
> how to make is as a library... i heard that we can use
> ar archive.. but we have to compile it before or what.. if compiling means
> it should contain main().. then how can other program cna use that
> library..
> can anybody explain me from scratch.. i am very much interested in having
> my own libraries.. help me..
>
> ramesh
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> ---------------------------------------------
> Find out more about this and other Linux India
> mailing lists at http://lists.linux-india.org/