C: Linking shared libraries during building vs using libdl at runtime This website says there are 2 ways of using shared object files (.so):