Does a C++ shared library have its own memory space? Or does it share the caller process' one?
I have a shared library which contains some classes and wrapper functions. One of this wrapper function is kinda:
libXXX_construct()
which initializes an object and returns the pointer to the said object.
Once I use libXXX_construct()
in a caller program where is the object placed?Is it in the "caller" memory space or is it in the library's memory space?