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++?
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.
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.
Thanks suve... Got some points...