I have certain doubts:
Use case:
A static library containing a global variable, static variable, a function
and a class defined
A shared library uses these and hence they are part of the same.
A executable program also uses the same and they are part of the same.
The executable loads the shared library on run time
- What all differs between windows and Linux?
- Can the shared library use something from executable's static library objects?
- Can the executable use something from shared library's static library objects?
- What is the role of loader? For ex: does the static library objects in static library are shared between shared library and executable on Linux?
- Is there any difference if the shared libraryis loaded at runtime or load time?