On 04/10/2012 02:38 PM, H Vlems wrote:
the -l switch is clear. The static and dynamic libraries are still vague.
Is the behaviour of a dynamic library similar to what VMS does when you link
an object file to one of the RTL libraries? Which means it gets linked to an
entry point and you can upgrade the RTL and the executable will keep working
(provided the entry point is still there)?
A static library's behaviour is like linking with object libraries where
part of the library is copied into the resulting .exe file?
Yes, basically. Code in a static library gets embedded into the
executable at link time, whereas in a dynamic library, the dynamic
linker pulls in the contents of the .so file and resolves all of the
symbol references at run time.
-Dave
--
Dave McGuire, AK4HZ
New Kensington, PA
Show replies by date