C++ Libraries – Best Practices for Distributing Libraries

cdistributionlibraries

How are libraries typically distributed? Because they have to be compiled with the same compiler under the same settings as the project using it, distributing the .dll, .lib, etc. seems impractical. Is the source code just made available for download?

Best Answer

As you noticed, distributing libraries is impractical... You have to care about the version of the compiler (including Service Packs), the settings used to compile, etc. We used to have 6 different ports for each version of Visual Studio: the most important difference was the Runtime Library used (/ST, /MT or /MD).

But unless you can distribute the source code, you'll have to live with this...

Related Topic