Originally posted by: SystemAdmin
Hello guys,
i am a little bit confused about the AIX shared/static libraries.
Until now i thought that *.so files are shared libraries and *.a are static ones.
But for example the libc.a is a shared library.
I found the following documentation on ibm information center:
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.vacpp7a.doc/proguide/ref/compile_library.htm So as i can see an archive (*.a file) can also be a shared libary, but i don't understand some points of the documentation, maybe you can help me:
>>Compiling a shared library
>>To create a shared library that uses static linking:
>> Compiling a shared library
>> To create a shared library that uses run-time linking:
What does IBM mean with "To create a shared library that uses static linking"?
Until now i thougt all shared libraries are linked dynamiclly at runtime and loaded by dlopen(). But what is a shared library with "static linking"?
I am a little bit confused about that, because the libc.a is definitly a shared library that uses static linking, but i don't understand what this means.
Maybe you can explain this and show the advantage/disadvantage between "shared library that uses static linking" and "shared library that uses run-time linking".
I am sorry, if i post this topic in the wrong forum ...
Thanks and Regards
c_devel
#AIX-Forum