From opencv Forum: http://www.opencv.org.cn/index.php/%E4%BB%80%E4%B9%88%E6%98%AF%E5%BA%93%28library%29
What isProgramLibrary
The so-called library is generally intended for the convenience of release, replacement, or secondary development by the software author, A set of binary relocable object code files that can be independently linked with the application for compile time or runtime.
In other words, a library is a file, which can be directly linked to the executable program by the compiler during compilation, you can also dynamically load the runtime enviroment of the operating system to the memory as needed. A group of databases forms a release package. Of course, the specific number of databases to be released is entirely determined by the database provider.
[Edit]
What is Lib, what is DLL, what is. A, what is. So, what is static library, what is dynamic library
Static libraries are searched and linked by the compiler to the specified directory during static compilation. Once the link is complete, the final executable program contains all the useful information in the library file, includingCode.
The so-called dynamic library means that when an application is running, the operating system dynamically searches for and loads data into the memory in the specified directory according to the application's request. Address redirection is also required.
On the Win32 platform,The static library is usually suffixed with. Lib.,The dynamic library is. dll.
In Linux, the static library is usually suffixed with. A and the dynamic library is. So.
Essentially, static and dynamic libraries compiled by the same program have no function difference.
The difference lies only in its name, that is, "static" and "dynamic ".
It is not difficult to see from the above introduction that compared with the dynamic library, the advantage of the static library is that it is directly linked into the executable program, this executable program no longer depends on the runtime environment settings (of course, it will still depend on Hard limits such as the CPU Instruction Set and the executable file format supported by the operating system).
The advantage of the dynamic library is that users can even replace the dynamic library at any time when the program is running, which constitutes the basis of the dynamic plug-in system.
The specific use of static and dynamic libraries is determined by the programmer as needed.
[Edit]