LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   static and dynamic link files.... (https://www.linuxquestions.org/questions/linux-newbie-8/static-and-dynamic-link-files-780755/)

shilpa rangappa 01-07-2010 11:47 PM

static and dynamic link files....
 
Hello,

Can anyone tell me what is dynamically linked file and statically linked files?

Thanks,
Shilpa

Gutsy_Iain_08 01-08-2010 01:28 AM

Quote:

Originally Posted by shilpa rangappa (Post 3818420)
Hello,

Can anyone tell me what is dynamically linked file and statically linked files?

Thanks,
Shilpa

It helps to know the definition of the word dynamic and static.

According to IBM's definition, dynamic means "pertaining to an operation that occurs when it is needed", rather than static which means, "little if any change."

Linked just means "coupled" or "connected", so dynamically linked literately means connected when needed, and statically linked literally means connected with no change.

evo2 01-08-2010 01:38 AM

A really basic non technical answer:

A program that is dynamically linked reads functions from other library files (libfoo.so) when it runs. A program that is statically linked has had functions from other libraries (libfoo.a) bundled into the executable at compile time.

Evo2.

shilpa rangappa 01-10-2010 08:27 PM

Thanks Evo2....


All times are GMT -5. The time now is 07:40 PM.