LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2012, 02:44 AM   #1
vikas reddy
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
about static and dynamic library


what are the actual use cases of these libraries...
 
Old 03-27-2012, 06:37 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,565

Rep: Reputation: 3257Reputation: 3257Reputation: 3257Reputation: 3257Reputation: 3257Reputation: 3257Reputation: 3257Reputation: 3257Reputation: 3257Reputation: 3257Reputation: 3257
Shared libraries ( = dynamic ) can be used by several applications.
Thus keeping the applications small.
Example : A small application, that uses say 50 MB shared libraries.

Static libraries are only used, when you compile them into an application.
Example, continued :
Now the same small application becomes bigger than 50 MB.

Info : http://www.yolinux.com/TUTORIALS/Lib...ndDynamic.html

.

Last edited by knudfl; 03-28-2012 at 12:13 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make static library linked with dynamic mysql lib Last_Winter Programming 3 08-06-2011 10:15 AM
C/C++ library programming on Linux (Static and dynamic libraries) Marko-M Programming 1 04-10-2011 05:14 AM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
Linking a static library to a dynamic one delta4s Programming 2 09-28-2006 01:24 AM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration