Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the main difference between framework and dynamic library

What is the main difference between frame work and dynamic library

like image 481
PrithviRaj Avatar asked Mar 26 '10 05:03

PrithviRaj


2 Answers

At its heart, an OS X framework is a dynamically linked library. The Framework is a special directory structure called a "framework bundle" that contains one or more versions of the dynamically linked library, as well as dependent frameworks, resources, metadata, etc. Other "bundles" on OS X include .app bundles (which contain an executable as well as resources, dependent frameworks, etc...).

like image 129
Barry Wark Avatar answered Oct 24 '22 05:10

Barry Wark


Dynamic library is a basic concept mostly independent from the specific platform, i.e. you can talk about dynamic libraries on OSX, Linux, Windows and mean the same basic thing - a piece of relocatable object code with exported API symbols that is composed in a way that allows it to be loaded and shared on demand by applications on the platform.

A framework is an OSX-specific term. It is a package which defines some commonly agreed upon directory structure and stores dynamic libraries, resources, description of the package and other relevant stuff at predefined locations. Which means that it has mostly semantical meaning which allows developers (and tools they create) to refer to it in a commonly understood way. It is worth noting that framework is not required to contain shared libraries at all.

like image 42
Inso Reiges Avatar answered Oct 24 '22 05:10

Inso Reiges