= = = Dynamic Library Description = = =
1. Library name format: Lib + the_name_of_library +. So + version_number
Exp:libc.so.6
2.ldconfig typically creates soname, but does not create linker name (libname.so), which is typically created when the library is installed
3. Temporarily add dynamic Library directory Ld_library_path, commonly used for testing and development
4.ld_preload Pre-load library. For pre-loading, emergency use, or special test conditions
5. Create a dynamic library
Gcc-fpic-shared-wl,-soname, Your_soname-o library_name \
File_list library_list
6.ldconfig Loading Directory Order
Executed in the order of the configuration directory
Encountered include ld.so.conf.d/*.conf, the order of these configurations sorted alphabetically
7. When compiling a program or library, the. o file will be included in the program or library, and the dynamic library will not, if encountered
Undefined symbol, the search symbol is to find the library from left to right, until it is found, the search is stateless and does not
Records what symbols are found, so it is generally recommended. o before the compilation options, so files are placed in the back, followed by
Dependency order Placement: The dependent object is placed on the right side of the dependent object
Linux Programming Dynamic Library knowledge