Utbildning
System package managers
C++ libraries are available in C++ package managers such as vcpkg or in system package managers such as apt. How you choose to acquire your libraries depends on your specific use case. You can also have vcpkg dependencies depend on system package manager dependencies.
- Overall deployment size will be reduced, as different programs can share the same shared libraries.
- Your program will respond to policy decisions configured on that system. For example, DNS policy tends to be implemented in glibc, or trusted certificates implemented in OpenSSL, or UI / themeing bits from UI libraries, etc.
- It's usually faster to download binaries from a system package manager than it is to build them from source.
- It will easier for development: vcpkg builds from source, meaning you will have debug information for libraries. Additionally, libraries build both release and debug versions.
- You have complete control over the versions of those dependencies. With a system package manager, you may be limited to only certain versions.
- The way you get dependencies can be the same for all platforms that you target.
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Feedback om vcpkg
vcpkg är ett öppen källkod projekt. Välj en länk för att ge feedback: