I am trying to create a C ++ library for use on Windows / MSVC.
My problem is that it seems that for proper communication I should distribute a bunch of different versions related to different versions of MSVC C ++ runtimes - single-user and multi-threaded, debugging and releases, different versions of compilers, various other security parameters and other options.
I would just like to distribute, possibly two, 32-bit and 64-bit.
My idea is to use another new operator (say mynew) and custom allocators for all my STL types. When creating lib, / nodefaultlib. Then, when you contact the parent project, they need them to change mynew to a new one, and my stl distributor to a standard one (or one of them). I think I will need to remove a few more functions. Naturally, I would give an example of the implementation of the library using the library, but this, I hope, will save everyone a lot of headache.
Is it possible? Has anyone ever tried this? Are there any better methods for creating / distributing libraries in Windows / MSVC?
source share