Results 1 to 3 of 3

Thread: Is anyone explain me about shared object and shared library ?

  1. #1
    Member
    Join Date
    Jun 2012
    Location
    CHENNAI
    Posts
    65

    Is anyone explain me about shared object and shared library ?

    can u pls explain about shared library and shared object ? where we r using it in C/C++?

  2. #2
    Senior Member suve's Avatar
    Join Date
    Jun 2012
    Posts
    443
    shared library:

    The static library is also called as Dynamic Library.

    The shared library consists of APIs that are loaded into your application at run time.

    These dynamic libraries are not become a part of the program while compiling.

    The dynamic libraries are .dll (Dynamic link library) files in windows.

    Shared Object:
    Coming to the linux the .so files are typically called as Shared Objects

    Advantages of the dynamic libraries:

    a. The dynamic libraries is that many programs can share one copy, which saves space.
    b. The dynamic library can be upgraded to a newer version without replacing all of the executables that use it.

    Because dynamic libraries are not linked into your program, programs using dynamic libraries must explicitly load and interface with the dynamic library. This mechanisms can be confusing, and makes interfacing with a dynamic library awkward. To make dynamic libraries easier to use, an import library can be used.

    Having shared libraries allows you to create programs that can break down functions into several different binary files. If there were no shared libraries all the programs would be a single, massive binary file.

    Updating programs would be pain because the entire project would have to be recompiled.

    Also, shared libraries allow programmers to reuse existing binary files so that standard functions don't have to be recompiled again and again.

  3. #3
    Member
    Join Date
    Jun 2012
    Location
    CHENNAI
    Posts
    65
    Thanks suve... Got some points...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •