Friday, September 14, 2012

What is library and List of c++ libraries

What is a library:
  • A library is a collection of implementations of behavior, written in terms of a language, that has a well-defined interface  by which the behavior is invoked.
  • Behavior is provided for reuse by multiple independent programs.
  • A program invokes the library-provided behavior via a mechanism of the language.
 
What is the advantage of library:
  • A library provide the reuse of the behavior. When a program invokes a library, it gains the behavior implemented inside that library without having to implement that behavior itself. 
  • Libraries encourage the sharing of code in a modular fashion, and  ease the distribution of the code. 

There are two type of library:
 1. Static library

  • If the code of the library is accessed during the build of the invoking program, then the library is call a static library.
 2. Dynamic library
  • The library behavior is connected after the executable has been invoked to be executed, either as part of the process of starting the execution, or in the middle of execution. In this case the library is called a dynamic library. 
  • A dynamic library can be loaded and linked as part of preparing a program for execution, by the linker.
                  
What is linker:
A computer program that takes one or more objects generated by a compiler and links them to standard library function and hence making them executable program.
   The linking process is usually automatically done by a linker or binder program that searches a set of libraries and other modules in a given order. Usually it is not considered an error if a link target can be found multiple times in a given set of libraries. Linking  may be done when an executable file is created, or whenever the program is used at run time.


For more detail on What is linker click here


      Free portable C++ libraries that complement the C++ Standard Library. Many Boost libraries may become part of the next C++ Standard.


             A comprehensible list of open source C++ libraries. So that you doesn't need to waste time searching on Google. 

No comments:

Post a Comment