If you distribute static libraries, you can distribute version-dependent libraries depending on what you do. If you only make calls in the OS, then you may be fine. Perhaps the functions of RTL. But if you use any functions, classes or templates of the standard C ++ library, then probably not.
When distributing a DLL, you will need separate libraries for each version of VS. Sometimes you even need separate libraries for different levels of service packages. And, as VolkerK already mentioned, your library users will have to use compatible compiler and linker settings. And even if you do everything right, users may need a link to other libraries that are somehow incompatible with yours.
Because of these problems, instead of wasting time creating all these libraries for your users, I would spend time making them as simplified as possible so that users can create them on their own with minimal fuss.
Kristopher Johnson Oct. 21 '09 at 12:09 2009-10-21 12:09
source share