C ++ development of those dll and lib

Source: Internet
Author: User
Lib is required during compilation and is required during dll runtime. If you need to complete source code compilation, it is enough to have lib. If the dynamic connection program runs, it is enough to have a dll.

Generally, dynamic library programs include lib files and dll files. The lib file must be connected to the application in the compiler, and will be called only during the runtime of the dll file.

If a dll file exists, the lib file is generally indexed. The specific implementation is in the dll file.

If only the lib file is available, the lib file is statically compiled and the indexes and implementations are all included.

The advantage of static compiling lib files is that dynamic libraries are no longer needed during installation. However, there are also some disadvantages, that is, the application is relatively large and the flexibility of the dynamic library is lost. During version upgrade, new applications must be released at the same time.

Compiling is done through the static link library (lib) to find the interface. Eg: # pragma comment (lib, "libmysql. lib ")

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.