LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 03: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, 07:37 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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 01: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 11:15 AM
C/C++ library programming on Linux (Static and dynamic libraries) Marko-M Programming 1 04-10-2011 06:14 AM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-05-2007 12:11 AM
Linking a static library to a dynamic one delta4s Programming 2 09-28-2006 02:24 AM


All times are GMT -5. The time now is 05:32 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